From nobody Thu Apr 27 00:45:50 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q6H8t3ZFlz47nFM; Thu, 27 Apr 2023 00:45:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q6H8t32zPz3qXf; Thu, 27 Apr 2023 00:45:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682556350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7O+Fm4UGLQH4hZsdsdfhzHr552CPwLycAAYJxWULiX4=; b=ceBJVae6KPQRhpEMgiBdUqevMbge9lDulsywf1dVyCoqvO7sKafx2iyJE8x7FowBlICKFw k6af2epsCb6KFhSrU34m7qu4QoB3lC3VVMmSNi2x/B8Q4Y6NlWL8VhXJeaNpsdRVg+Ymix tF2SPndQngNaUo3of1TNmoBrTsjPuXhxqajFSKh2u0DnxvsOsaMEQaYV3Q9+RyCQsMETkb 6NEM0C952P3Cds0HoVV7/0hCDl0QuHKLcoxtnyPpHSWW6nFc6EAiO/J+x+k4TPnwVVAd/q QoZgik1meWYPJfjXa3je1H1LCAiUpYQTptV1SmMtQHEhohrs02e6MpSNYK1BEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682556350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7O+Fm4UGLQH4hZsdsdfhzHr552CPwLycAAYJxWULiX4=; b=ZfaZkm2JExhZklskJxs7kJfWBjZLQiKKRBC1m8SICQt+uyAF+wNFuigsCxqoyZig2Dpgnv Y+JRF4WlNeXiMwnyvgKY9KuoMA4rGSdPAjZ7hmb/fDyd6duolWcwIkYLa2F5iaqt6LjJzD LJSZ3/kWDG7z4vl/PA+euv6XUIlXz+Au6VR1PrSz/7OzRubBXgkpXEXgimRalGsMXCgrt5 voTd+LMiM9WdtnaWDaSf0pffr2nUhUbFigeeP8JpIU5Xg3Fg7eJFE6D8E9AjlHf6Ehmtef FbOBG2sI+3xQoct/TLwBv++ovjkWqVSi9+4VTCZcUuReJoYh64xEAWKdjLNRAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682556350; a=rsa-sha256; cv=none; b=cQygOObU96r00orTDUfxSELdtiBPGM6OMR8xkXTtL0iDdmHhKtIpux44uOhbnHrV+nfq89 VtuZTEuXyfw5dPdpBhDQm5IFp5EylPdN8LvyTxkVvCc4qR+dSfXACd2msZ/X9efHLff/Vo MSXvB3jbuQwDGNiStrJ4v0YpjlwVGo41Lmnc7YLhD9BgTg2QcLEp3U1v8ZFGT0YaAKqxSR 7Vi8VC3f+FXqBV9ke6PZTRg2amCRTu69V9xQq9jS7Z1tpFRwO7c2P3xNX33WhhBdlH5pqP jeLnDUeglgcDJQxZJEbTVGBrTQ0mc0l6ub3PzLlP+TcZoxbLUfdni9InqGEHvg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q6H8t27PSzwV3; Thu, 27 Apr 2023 00:45:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33R0jof9025057; Thu, 27 Apr 2023 00:45:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33R0jouv025056; Thu, 27 Apr 2023 00:45:50 GMT (envelope-from git) Date: Thu, 27 Apr 2023 00:45:50 GMT Message-Id: <202304270045.33R0jouv025056@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 06e36c8c7717 - stable/13 - posixshmcontrol(1): silently ignore inaccessible segments when listing List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 06e36c8c7717338558aa807db63c80f245bf533b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=06e36c8c7717338558aa807db63c80f245bf533b commit 06e36c8c7717338558aa807db63c80f245bf533b Author: Konstantin Belousov AuthorDate: 2023-04-23 23:30:58 +0000 Commit: Konstantin Belousov CommitDate: 2023-04-27 00:45:02 +0000 posixshmcontrol(1): silently ignore inaccessible segments when listing PR: 271038 (cherry picked from commit 043e24bdb01938c0d5a73a3192e316ce0b96ec1b) --- usr.bin/posixshmcontrol/posixshmcontrol.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.bin/posixshmcontrol/posixshmcontrol.c b/usr.bin/posixshmcontrol/posixshmcontrol.c index 3b9d1dc256c3..5bb8aa473502 100644 --- a/usr.bin/posixshmcontrol/posixshmcontrol.c +++ b/usr.bin/posixshmcontrol/posixshmcontrol.c @@ -308,8 +308,10 @@ list_shm(int argc, char **argv) continue; fd = shm_open(kif->kf_path, O_RDONLY, 0); if (fd == -1) { - warn("open %s", kif->kf_path); - ret = 1; + if (errno != EACCES) { + warn("open %s", kif->kf_path); + ret = 1; + } continue; } error = fstat(fd, &st);