.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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmCzL5ZD6z3DfD; Tue, 14 Oct 2025 12:22:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760444574; 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=BAqIHX9i/DXHMHgSrJhh39bKXYH4NbKCOO5rcwoNfJc=; b=nSE5vhSWjkf/rg+VAbzQub+cOYffurV9Taqgv90OZanASYbKeaJyKGpEj9QlbQ5F4a/0jl V1vtwNiTxuL7r8kcCbj5WplZl0OTukyGeORfX9CRFjNOYLISvsm8advsLBQeu3dY7Dbxl/ pmrfdS5BZRbor5fXfTb4VGr81DlgIrptMRhDp/ijz2snA7iafeDMhJM4JuJ1yrWycMKYzI GIyGLrIKjAh9SBVwNBGUq+KJE6INIRzkiHIJMo8vVlJ1Ym5rcA18Xj52FqQ9JbtMNCLoIr jI2D3iRjWvvLQuul4o2X55gPMT8C3NhVbQTqO0XNs5FPJK4UYqHY+6h8zBLh1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760444574; 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=BAqIHX9i/DXHMHgSrJhh39bKXYH4NbKCOO5rcwoNfJc=; b=SVu+Yi4KEInwP5iKEEHuLJP32NwHGEC5LAKNiK+6Som+NRlrwD0CMztaBX4y1aKVU1yXu9 sRWlH26szeVKwcNinRurE9UeRSyvJbJBRrWRKs/yOXkGDpNd2AlFsctpaKR7cMf1uOCcd9 AHJVapaOYRZhPl+KyuN2k3pwGNOToq2LXrO8Rum7hKMKpbg0k1HUoiCMSivoUO4+WzBzDa 2LiIAIyODHTttneB2zsnFIBKji72Djq2K6QvlcaS0hYrqeRmuvN98aX5ekDL003lWHIOFo axjfso9PUUPtQueaNcNbjSajgbkh7scFQcJhkFASGkbfn8JmsYW6ryujYXAEXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760444574; a=rsa-sha256; cv=none; b=HCY0EaN8mrDb6W/EcM6ufT7dcGTTv4CA0bklPTuf0xcLH3JZoobMnt7o25CUhd7aCVOZdB b4NtKewtG+fXpXIdFiIfyxbPm3t7U0rZ8ymC+4HLfSOTdQWzCBv0DjOeeEYMCEDnyS0DAs BVZZfMsmKheUETFIzXtA3s6Qe0XhkIeGCcb+4BU2J0ij1AQ9qP88Hm/yjXzSDzfMaFjVp5 N+U57MZPAm6ZV9giHJL7owY4LOC5rqwIiMrVFYDv4b8HhcyTwGvWxs+01d7X+yzi88o+Hs EOBOXIWa12HD7j+WNb3zAYzLGGJYwqCre5aU/GN2fVExBuDIjNHlms+fGZQRLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cmCzL532ZzsLn; Tue, 14 Oct 2025 12:22:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59ECMs0A019760; Tue, 14 Oct 2025 12:22:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59ECMsfS019757; Tue, 14 Oct 2025 12:22:54 GMT (envelope-from git) Date: Tue, 14 Oct 2025 12:22:54 GMT Message-Id: <202510141222.59ECMsfS019757@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: a4105a5d4e17 - main - sys/rpc: UNIX auth: Style: Remove unnecessary headers, minor changes 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4105a5d4e179aa1ef661ee45d6008e83fefd2a7 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=a4105a5d4e179aa1ef661ee45d6008e83fefd2a7 commit a4105a5d4e179aa1ef661ee45d6008e83fefd2a7 Author: Olivier Certner AuthorDate: 2025-10-07 17:10:12 +0000 Commit: Olivier Certner CommitDate: 2025-10-14 12:21:50 +0000 sys/rpc: UNIX auth: Style: Remove unnecessary headers, minor changes MFC after: 2 days Sponsored by: The FreeBSD Foundation --- sys/rpc/authunix_prot.c | 10 +++------- sys/rpc/svc_auth_unix.c | 4 +--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/sys/rpc/authunix_prot.c b/sys/rpc/authunix_prot.c index 0274a713ff2b..ff4c12c3f52e 100644 --- a/sys/rpc/authunix_prot.c +++ b/sys/rpc/authunix_prot.c @@ -30,7 +30,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include /* * authunix_prot.c * XDR for UNIX style authentication parameters for RPC @@ -40,8 +39,7 @@ #include #include -#include -#include +#include #include #include @@ -70,12 +68,10 @@ xdr_authunix_parms(XDR *xdrs, uint32_t *time, struct xucred *cred) namelen = strlen(hostbuf); if (namelen > AUTH_SYS_MAX_HOSTNAME) namelen = AUTH_SYS_MAX_HOSTNAME; - } else { + } else namelen = 0; - } - if (!xdr_uint32_t(xdrs, time) - || !xdr_uint32_t(xdrs, &namelen)) + if (!xdr_uint32_t(xdrs, time) || !xdr_uint32_t(xdrs, &namelen)) return (FALSE); /* diff --git a/sys/rpc/svc_auth_unix.c b/sys/rpc/svc_auth_unix.c index 4d5535a4fee2..9e4b0b8483b5 100644 --- a/sys/rpc/svc_auth_unix.c +++ b/sys/rpc/svc_auth_unix.c @@ -41,8 +41,6 @@ */ #include -#include -#include #include #include @@ -131,7 +129,7 @@ _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg) buf++; } xcr->cr_ngroups = MIN(supp_ngroups + 1, XU_NGROUPS); - } else if (! xdr_authunix_parms(&xdrs, &time, xcr)) + } else if (!xdr_authunix_parms(&xdrs, &time, xcr)) goto badcred; rqst->rq_verf = _null_auth;