diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1999-11-22 12:42:38 +0000 | 
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1999-11-22 12:42:38 +0000 | 
| commit | 637bc59616010594c7e18488a99c9aa55fa714dc (patch) | |
| tree | 5be2851b31ba18ea0a0becd568a0c996d00ac4a6 /lib/libc/gen/pw_scan.c | |
| parent | 51f4c15279243e64f7862db4e976d6347b93a5c8 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/pw_scan.c')
| -rw-r--r-- | lib/libc/gen/pw_scan.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/gen/pw_scan.c b/lib/libc/gen/pw_scan.c index a24380f60814..09556a3e320f 100644 --- a/lib/libc/gen/pw_scan.c +++ b/lib/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) {  | 
