diff options
author | Olivier Certner <olce@FreeBSD.org> | 2024-10-08 09:44:06 +0000 |
---|---|---|
committer | Olivier Certner <olce@FreeBSD.org> | 2025-01-17 12:24:52 +0000 |
commit | 111c7322f71ec653447fd79382ae75c6b11605cd (patch) | |
tree | 85770d3bd4eb5e5567d9da532529bcf55a2d55e4 /usr.sbin/mountd | |
parent | 46f0ef933d288c151accc95cc4717cf6abada83d (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)
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index cdf42de2fcdb..8ddedbb16f24 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -3591,7 +3591,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); |