From nobody Thu Oct 16 16:58:26 2025 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 4cnZ0M2zyyz6CnfZ; Thu, 16 Oct 2025 16:58:27 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cnZ0M0dL5z3jxZ; Thu, 16 Oct 2025 16:58:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760633907; 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=rNxIfaOGBrLQV4+KUUKEhneLT98fl4D5stj0yvNSiqk=; b=Y0DTk0w9nWfyuXxuPKzDQjMNdd2ZqNTSC6Yv4PUoAtM42ld2xyJDhIdWBPZZ6o6ht99XZ5 X08QOMeoPGDKMq3qbvKB4YyrmY7WzIwT2vxfQSzMxe9T6dMVdmF/Wvcp4k4m0nAKfKnDeZ Mg0F1Si7jNgYA29jeJ4Ar7b+hOWnSK4c5E3QrM2lVO13Zyx9lrtN/kWNvwk9Zx0ilIeDTy PtgbruirlS5ujK/yrOXl3W3a+z5bnC5yOEvTVHgCcO4d3uFyOYdU3ytNU7bDYKRWnxfDP3 Z2mVKSZ9h5Rpec1ow8fh9f2dDKWQkJUdWbQF9TpKXbdcUvsDNgX0m+iN6w74jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760633907; 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=rNxIfaOGBrLQV4+KUUKEhneLT98fl4D5stj0yvNSiqk=; b=i79nWqr98ds6ODdK/NOIFlb05vd2HmfeXeXqbc6hXu20QUiyGNmSfplHBMqbfqGlRqPHIc yOJn5RexAW91cfh7ZMnLZphCdAXzl9ktclikRbPzhOpmfIMEKocmVVMAmZoIiiiaLHoreX F31aO1GMNH0R4YXssrMarE8IUBuLjPegtjU8OXEdkemV8RdyCNvJPLRcLVjBBKfNESDlfW PTGxJBPZZVFaFrfLv3+zcbzICoAM17gRgDf8KITzO1bEXARxTIml8/n/L++Ia76yRAX9t6 pLXpFLBIA2orhaIW6kCzswzSL/S/Pbg0HxejH7ZkQMmbmOqzimzwT2IPVUxgKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760633907; a=rsa-sha256; cv=none; b=wy4ZYxH6VL5KEQxY44CungUoTZ6fJL1OeGaR93VwWKJ93bMDU242oz8D7t3XqsVhMshxXv fP+FJBOwgZmw7vobtl7IivtVySHyuOAYCs8VQQPpvVqwwkRrLZGaAs/Y/HmbhUiUlo+9Q2 6WAqsCoz+nwss7gZt09e8ioxefhkAIwnZ44kCIBXCmJRVsiaekhIY4EiervLIFqZ5we6J8 L3z9tmUshlJWzHNKEBhsvNsmL3BreofPX5AbN7TJXwowmcjvMDrbQkchgzZvyYFr3AQjrA 4rItRxor7T8VyxlodM6TPfyVB2rVPjfuPtaQCDciJu6GMjngZ80z5R4PMOPgsA== 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 4cnZ0M0C0Jz25Q; Thu, 16 Oct 2025 16:58:27 +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 59GGwQPV055948; Thu, 16 Oct 2025 16:58:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59GGwQgQ055945; Thu, 16 Oct 2025 16:58:26 GMT (envelope-from git) Date: Thu, 16 Oct 2025 16:58:26 GMT Message-Id: <202510161658.59GGwQgQ055945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: d06658b8066d - stable/15 - sys/rpc: UNIX auth: Style: Remove unnecessary headers, minor changes 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: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/15 X-Git-Reftype: branch X-Git-Commit: d06658b8066d1c3af400db33896a493be2ebdfab Auto-Submitted: auto-generated The branch stable/15 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=d06658b8066d1c3af400db33896a493be2ebdfab commit d06658b8066d1c3af400db33896a493be2ebdfab Author: Olivier Certner AuthorDate: 2025-10-07 17:10:12 +0000 Commit: Olivier Certner CommitDate: 2025-10-16 16:57:46 +0000 sys/rpc: UNIX auth: Style: Remove unnecessary headers, minor changes MFC after: 2 days Sponsored by: The FreeBSD Foundation (cherry picked from commit a4105a5d4e179aa1ef661ee45d6008e83fefd2a7) --- 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;