From nobody Sun Apr 23 23:39:06 2023 X-Original-To: dev-commits-src-main@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 4Q4PqH17Rhz46fDX; Sun, 23 Apr 2023 23:39:07 +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 4Q4PqH0j9Dz3mKl; Sun, 23 Apr 2023 23:39:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682293147; 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=Pz/vEUhgkrb0cKjpACYVzpzGzZB+q+zWMeC7tK4iwFs=; b=oem1xtOkAl8q5uDWZ7Kq9xj0zGv/iMF0aoXPPH9JwIJ/rmctCgYbdDaID58pLZ19Qo3ovw DntYy1z1Ms+NeUczaKumvrpZI/+8Kmq0gd2BQFAvpb6sqFBjRKGTKLVGjpHwPHzJzErW2x LsvbVFxESxeM1ehuiyOCUfg0cmzk8Ctus91CuFvX//bGaHZsvQqQS+yHJPlGC267ABtRum wGCbo4PrSvbhMz8SVjD9/JYP8lx0PgpzZU4Sk1vEWwWBUCxAHKlV/mJRb7RasUU55U5u4i GhMOORs6UzVA55sdguOyDETBsh9Ezjea/GMtk6UdWG+lMxB0LCByrWKvmXqbxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682293147; 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=Pz/vEUhgkrb0cKjpACYVzpzGzZB+q+zWMeC7tK4iwFs=; b=bq3inOdQLd7zj+4Xrv7QGq6GR3rC+sDZjWyczV3I1CTTzvTLMeSG/YdTJJJ3oddmeaC6uF pyy7WvIjCqHmOz4vDRc4x2qWgmWIo788OiGIx/ewEP9apTPaf3J7RAnmSsauCK3eDa4qtU eLr8khslQs8OA5LlIoxNuUnmHQPOu+mm33/b8knsOe06047X4aMHzj1+aoGY8/uCPG3bkP 45xgmhUVnM5BOV/GLMBU+wCyYtQ/ldqT3slSBqLwwWG+85/CX8mOmUX79LSREDAt6ZD1Ju DQhrMyz05Qf7zFgW6yBGmPj+cldqAlN5V7Qvm9Vr2ta5CuhO3dAC8qKk3xgSNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682293147; a=rsa-sha256; cv=none; b=mGdN8GUQp5QccXC/wiJhP1GUOCIQqHc7s19LpJu6xxCjrlnErW4+Y8EoRSjQ9OuKMaUg0p Rvd+PoO0vU2IgnurdDdSGDTX99M+a9N30rJJa7qU5VTJfyNEUXtMIPnNf/wYJtqi5fjXDh fO0sBRrSk37331porxPYCF4az7r4XKJl8chdvMG9MbeUTevkrDocOTV2SHFCGvZcDgQpXe 3qFe4MMZRcu9/lRieAYQ2Rj0qg9RcHc5OrO39mKCEQXJbWFoMNc5xXQJ1SyOaCb7Ldd4e0 Miaq4Ao+xSWcA+rejV9CDz+u4a/r/4l+gze7rEP6zO8X0WVphm8ZMxwLk6FFLg== 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 4Q4PqG6qH4z12rV; Sun, 23 Apr 2023 23:39:06 +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 33NNd6VC086367; Sun, 23 Apr 2023 23:39:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33NNd67P086366; Sun, 23 Apr 2023 23:39:06 GMT (envelope-from git) Date: Sun, 23 Apr 2023 23:39:06 GMT Message-Id: <202304232339.33NNd67P086366@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 043e24bdb019 - main - posixshmcontrol(1): silently ignore inaccessible segments when listing List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 043e24bdb01938c0d5a73a3192e316ce0b96ec1b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=043e24bdb01938c0d5a73a3192e316ce0b96ec1b commit 043e24bdb01938c0d5a73a3192e316ce0b96ec1b Author: Konstantin Belousov AuthorDate: 2023-04-23 23:30:58 +0000 Commit: Konstantin Belousov CommitDate: 2023-04-23 23:38:48 +0000 posixshmcontrol(1): silently ignore inaccessible segments when listing PR: 271038 Reported by: rau8344@gmail.com Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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);