aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2024-10-08 09:44:06 +0000
committerOlivier Certner <olce@FreeBSD.org>2025-01-16 18:06:58 +0000
commit42a885e6907c44afd0d848c6f5c37f58f108e029 (patch)
tree1c6c025f0428f2d2d7d7c656292399bc92a31178
parentd8b77cc05ab25500636d0d34f10a8a9091778914 (diff)
mountd(8): parsecred(): Remove comment on non-existent bug
'name' can never be NULL, as it is equal to 'names' and 'namelist', which was passed by do_cred() only if the actual parameter wasn't NULL. Reviewed by: rmacklem Approved by: markj (mentor) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47014 (cherry picked from commit 0b011b5cddb5b17cf5b8f50ff580f3eb4abaeeef)
-rw-r--r--usr.sbin/mountd/mountd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 55db501332bf..efc6e0ef6730 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -3634,7 +3634,6 @@ parsecred(char *namelist, struct expcred *cr)
*/
names = namelist;
name = strsep_quote(&names, ":");
- /* Bug? name could be NULL here */
name_ul = strtoul(name, &end, 10);
if (*end != '\0' || end == name)
pw = getpwnam(name);