diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-26 16:50:42 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-26 16:50:42 +0000 |
commit | 4b2b10bd258e20a20d0ad874e6cc7c14677b5701 (patch) | |
tree | 14b215b716ccad2b7a93358bd09b487f7d025897 /usr.sbin/pw/pw_group.c | |
parent | 86f05ea6cf407e42c8c0dec4d5753fcbe5780d87 (diff) | |
download | src-4b2b10bd258e20a20d0ad874e6cc7c14677b5701.tar.gz src-4b2b10bd258e20a20d0ad874e6cc7c14677b5701.zip |
Notes
Diffstat (limited to 'usr.sbin/pw/pw_group.c')
-rw-r--r-- | usr.sbin/pw/pw_group.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/pw/pw_group.c b/usr.sbin/pw/pw_group.c index 51166cdebca5..b20ce88fb301 100644 --- a/usr.sbin/pw/pw_group.c +++ b/usr.sbin/pw/pw_group.c @@ -68,11 +68,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args) }; if (a_gid != NULL) { - const char *teststr; - teststr = a_gid->val; - if (*teststr == '-') - teststr++; - if (strspn(teststr, "0123456789") != strlen(teststr)) + if (strspn(a_gid->val, "0123456789") != strlen(a_gid->val)) errx(EX_USAGE, "-g expects a number"); } |