diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1999-11-06 20:21:04 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1999-11-06 20:21:04 +0000 |
| commit | aa510d6741622bd40bae9c6c3f4e9d1599c033ee (patch) | |
| tree | 6b2722dd3873d084e0fc71b6349a83787384c2aa /lib/libc | |
| parent | 5cb03e7cb2c8708836cf96bc061131417474d91d (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/pw_scan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/gen/pw_scan.c b/lib/libc/gen/pw_scan.c index 5190686e5e78..0ce9b1d6b19a 100644 --- a/lib/libc/gen/pw_scan.c +++ b/lib/libc/gen/pw_scan.c @@ -78,7 +78,12 @@ pw_scan(bp, pw) if (!(p = strsep(&bp, ":"))) /* uid */ goto fmt; - if(p[0]) pw->pw_fields |= _PWF_UID; + if (p[0]) + pw->pw_fields |= _PWF_UID; + else { + warnx("no uid for user %s", pw->pw_name); + return (0); + } id = atol(p); if (root && id) { warnx("root uid should be 0"); |
