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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/gen/pw_scan.c b/libc/gen/pw_scan.c
index 95328a8..3d49aa8 100644
--- a/libc/gen/pw_scan.c
+++ b/libc/gen/pw_scan.c
@@ -104,7 +104,7 @@ __pw_scan(char *bp, struct passwd *pw, int flags)
warnx("%s > max uid value (%lu)", p, ULONG_MAX);
return (0);
}
- if (*ep != '\0' || ep == p) {
+ if (*ep != '\0') {
if (flags & _PWSCAN_WARN)
warnx("%s uid is incorrect", p);
return (0);
@@ -130,7 +130,7 @@ __pw_scan(char *bp, struct passwd *pw, int flags)
warnx("%s > max gid value (%lu)", p, ULONG_MAX);
return (0);
}
- if (*ep != '\0' || ep == p) {
+ if (*ep != '\0') {
if (flags & _PWSCAN_WARN)
warnx("%s gid is incorrect", p);
return (0);