git: dfd1dea884d7 - stable/13 - devname(3): apply S_ISBLK() to type, not dev_t
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Feb 2023 00:27:02 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=dfd1dea884d771f763f1a40efe8b018ffcc04897 commit dfd1dea884d771f763f1a40efe8b018ffcc04897 Author: Alexander Naumochkin <alexander.naumochkin@gmail.com> AuthorDate: 2023-01-28 13:22:50 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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); }