From nobody Fri Feb 3 00:27:02 2023 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 4P7GgV6WtNz3klnt; Fri, 3 Feb 2023 00:27:02 +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 4P7GgV5qvZz3pw9; Fri, 3 Feb 2023 00:27:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675384022; 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=PlTEdYni49UeFqYTZCbBFqDALQdcVi4n5lqrIk0dDOo=; b=B03YTJMIeEMp/zKz0g9zphiORlwpPW5ZNQ9liB6uGiUb60fMR44fAvicNXiomejw/1b5wE jiNCQJYiIEJ/X9423R7cVc4JcIauxXOaqj7EmN8hzGexohx/DxNCi+NZPPZhfFU6d3Lk1N TOmUocJMM67Di+eDfckPx15fczHeicthtQWNWU7+5Y6lUQLCh/VAIUvtzRj/VoZfb+SUjQ etKz+jZ/s5w1l+g3bVws6LiX9inallCzxS0odi5imqURvrBoadD3VgKY480gl1NbRgg9PD cO2hKCthFzFynQ5wuydRN2VM0g1luy5upJdYYyrZkIW+qjKxZbMsE3TrNlzMLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675384022; 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=PlTEdYni49UeFqYTZCbBFqDALQdcVi4n5lqrIk0dDOo=; b=irg2kTubMnGHAZYwMVths2cMZzSNNjA8/kcm7HIYXr23RsTUt+l32j/6sVYbe2XZ5+kDt6 ersdTsjObpwMGikWHmjA4c5fAtRMtWvHHmgxPZM2fPg1rA+rcM3nFOUH+ouILSUlAAb78L J59GAf7/lNKm1+znaw5+G4YmuDlOjQJIUIBAeS6AKVyh0X/vYpiflqw9RE8pQlFP/8EI2z lPVd+t+q0pr0veFdGsusap4PHvxepN2G5hT4RYu08Nd8SEhizOR9mnBi8pvkG6XdReN/CR Ld+6/dVVAzQcnC4E7zxQYL4q+Bfz+UWBuOBFwbd85fYm5gC+r4WpbJXjnKSQWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675384022; a=rsa-sha256; cv=none; b=DseKwuntDtIwNO0rjHbHGZK2WOYblA08lqNWsqCmw/pkSSyuv7Mb4NcAtN15tjcBeqD3Yr ubq5pUgKCAqBjAW3gbkeG2G/SqQWHaXyZauQeB8VoG0APOUd7d/PTrjiknPPtQBN8uTuGt sg3jcx2yfNs684hqOFTTK9SQfUR4vt66yEQmAxKjHCWR8oy4jjsdp0QuN44jeO8Wab3Plq h5k92ulCLaWLdkyiKmycEz7K7MR49BLrGVRlYs4BUX4CkVwkTHPIz+9HIGggwTDnmEOR6i deYq33i7IE4Rt53FHe68cTAk3fAabPoOsa5by29gDGn5AsaxQhHbmu6STY3gsA== 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 4P7GgV4sPRzFW3; Fri, 3 Feb 2023 00:27:02 +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 3130R2Qr006220; Fri, 3 Feb 2023 00:27:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3130R2AX006219; Fri, 3 Feb 2023 00:27:02 GMT (envelope-from git) Date: Fri, 3 Feb 2023 00:27:02 GMT Message-Id: <202302030027.3130R2AX006219@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: dfd1dea884d7 - stable/13 - devname(3): apply S_ISBLK() to type, not dev_t 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: dfd1dea884d771f763f1a40efe8b018ffcc04897 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=dfd1dea884d771f763f1a40efe8b018ffcc04897 commit dfd1dea884d771f763f1a40efe8b018ffcc04897 Author: Alexander Naumochkin AuthorDate: 2023-01-28 13:22:50 +0000 Commit: Konstantin Belousov CommitDate: 2023-02-03 00:26:12 +0000 devname(3): apply S_ISBLK() to type, not dev_t PR: 269190 (cherry picked from commit 0311fe403d35f6241fa94104c4b92c9d73214cbc) --- lib/libc/gen/devname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c index e519b505f1f8..55e6279a25ce 100644 --- a/lib/libc/gen/devname.c +++ b/lib/libc/gen/devname.c @@ -48,7 +48,7 @@ devname_r(dev_t dev, mode_t type, char *buf, int len) int i; size_t j; - if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(dev))) { + if (dev == NODEV || !(S_ISCHR(type) || S_ISBLK(type))) { strlcpy(buf, "#NODEV", len); return (buf); }