From nobody Fri May 10 11:06:18 2024 X-Original-To: dev-commits-src-all@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 4VbQzv1KBjz5JCd0; Fri, 10 May 2024 11:06:19 +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 4VbQzt6Pn5z4QfQ; Fri, 10 May 2024 11:06:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715339178; 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=56PPQfng8GLnzuuk5Ft67Xo8Ez1FhnjoS2N0AXeSdJw=; b=R5nmYtQqeBP4te0EdEfg7ZfHVl+XdROc8DIuUYAtMcp1TonoiDwggGWTMhIEHVkVdph+rz WsEFzT/TAnsUaJfSgdIUq2XM1NJCPGpUmV2aN5mZ8FN1dEona0n25PT+kpI3eaW5kpSEaK VAOnGLd0smQUVGbPXvKebB1uGaFTrmnp0WfufqBiATypVKzSmdUWYED9sW7l42FFAOz5/A 9IYpDKV9Q8AuIJwC0UOBLI+QbTG0zlCrhgHBcer3R41MkO6MiMMJ7aPd7wfJbHpF2PJZWe FyU0lKjizOIKNMNcPE53tT+jThxORXh0JxEopkDk4WhsMkSxk6S8Q7IKiK4gew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715339178; a=rsa-sha256; cv=none; b=fnLeBW6eO4rYzaUs1AC3ckeRSi1NATmBgVXqQDiVxBCUxl0cBcoCUNp+Ma/wFrJoVr+8JO QOYtS0GM+obp02aqdXqghxgeVGMKGrnMpFMkfNumDYlZXuAlFOeZEcJEGNeJUC6eHw9Igt lHsa701jkqiGVXmYZKQ396LQL5AWMLxFaxieSDRxHmM+pJmii3Do0TsdofHUeKskgLfzmE RaZmyFwa+Uy9ioJ/LAj9Jgk4Y+8yo92pZwEdEJUMZcW7pRa45d+GwrNElsWe3H4cq3pBC0 dbHpaiXuLHuc3xICMFOxR1byYutHPK/qsRwUMv5bRdPLgWluG9P3MIjKweEPVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715339178; 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=56PPQfng8GLnzuuk5Ft67Xo8Ez1FhnjoS2N0AXeSdJw=; b=wVI1vVaUh6bWY1Txwv9OMOVgR+k6Cve/HEER0flHA1UejLTUV23E2mW9NOVSt97IZ0IJ03 AxBLWAROVvDNuV6EhifrIxe8bf2mr7J6QIvzNgmr2pI4WgwxhybWAfa9JE9ovvKbHYpdL4 incUAilwCMTRZfZGZVkpqcCbX78dXVa4KTxrALoJpYfdUgI5OJLhRuuv67AoBfIf+77VYA Tj/Yawg+0ZjK35ApW8v3xqJ9y54sWNEVthvkdhsuLYxz+j+yfsHnTlAUFkod4KOYl0iT+x rNruebuNVmxRzXHVet2+IrdRR50QpNPYxeqvlfrFiRx+rtoyp8npGUJpxfwBWA== 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 4VbQzt61krzZg5; Fri, 10 May 2024 11:06:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44AB6IKJ049847; Fri, 10 May 2024 11:06:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44AB6I9E049844; Fri, 10 May 2024 11:06:18 GMT (envelope-from git) Date: Fri, 10 May 2024 11:06:18 GMT Message-Id: <202405101106.44AB6I9E049844@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: ad4f3bdf733c - main - cat: Missed a couple. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ad4f3bdf733c1a670021f4db378338f5aaedbfd8 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=ad4f3bdf733c1a670021f4db378338f5aaedbfd8 commit ad4f3bdf733c1a670021f4db378338f5aaedbfd8 Author: Dag-Erling Smørgrav AuthorDate: 2024-05-10 11:04:56 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-05-10 11:05:45 +0000 cat: Missed a couple. MFC after: 3 days Sponsored by: Klara, Inc. --- bin/cat/cat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cat/cat.c b/bin/cat/cat.c index 5db2781e9912..3e7974e5f334 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -125,7 +125,7 @@ init_casper_net(cap_channel_t *casper) familylimit = AF_LOCAL; cap_net_limit_name2addr_family(limit, &familylimit, 1); - if (cap_net_limit(limit) < 0) + if (cap_net_limit(limit) != 0) err(EXIT_FAILURE, "unable to apply limits"); } #endif @@ -206,7 +206,7 @@ main(int argc, char *argv[]) caph_cache_catpages(); - if (caph_enter_casper() < 0) + if (caph_enter_casper() != 0) err(EXIT_FAILURE, "capsicum"); if (bflag || eflag || nflag || sflag || tflag || vflag) @@ -471,7 +471,7 @@ udom_open(const char *path, int flags) errno = serrno; return (-1); } - if (caph_rights_limit(fd, &rights) < 0) { + if (caph_rights_limit(fd, &rights) != 0) { serrno = errno; close(fd); freeaddrinfo(res0);