git: 0d4b73a3ced9 - stable/15 - ctermid(3): Fix return
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Jun 2026 01:11:41 UTC
The branch stable/15 has been updated by obiwac:
URL: https://cgit.FreeBSD.org/src/commit/?id=0d4b73a3ced914db10f8f6a2d454a6a9f8fad4bb
commit 0d4b73a3ced914db10f8f6a2d454a6a9f8fad4bb
Author: Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-06-19 14:53:42 +0000
Commit: Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-06-27 01:09:41 +0000
ctermid(3): Fix return
Reported by: bnovkov
Fixes: dc24f31b67f5 ("ctermid(3): Fix return values section")
Sponsored by: Klara, Inc.
(cherry picked from commit d7c110658e0b11fbe7a1f5d9f2b340d1985b9742)
---
lib/libc/gen/ctermid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libc/gen/ctermid.c b/lib/libc/gen/ctermid.c
index 1ca2401f0c1d..add37be1aa1a 100644
--- a/lib/libc/gen/ctermid.c
+++ b/lib/libc/gen/ctermid.c
@@ -59,7 +59,7 @@ __ssp_real(ctermid)(char *buf)
(void)sysctlbyname("kern.devname", buf + LEN_PATH_DEV,
&dlen, &sb.st_rdev, sizeof(sb.st_rdev));
errno = sverrno;
- return (s);
+ return (buf);
}
char *