summaryrefslogtreecommitdiffstats
path: root/libc/gen/pw_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/gen/pw_scan.c')
-rw-r--r--libc/gen/pw_scan.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/gen/pw_scan.c b/libc/gen/pw_scan.c
index a24380f..09556a3 100644
--- a/libc/gen/pw_scan.c
+++ b/libc/gen/pw_scan.c
@@ -88,8 +88,10 @@ pw_scan(bp, pw)
if (p[0])
pw->pw_fields |= _PWF_UID;
else {
- warnx("no uid for user %s", pw->pw_name);
- return (0);
+ if (pw->pw_name[0] != '+' && pw->pw_name[0] != '-') {
+ warnx("no uid for user %s", pw->pw_name);
+ return (0);
+ }
}
id = atol(p);
if (root && id) {