diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 21:57:20 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 21:57:20 +0000 |
commit | 81b2ca9d3cd92e908e6c7b81a98fd399546829c0 (patch) | |
tree | b50fb15b9c9582c914d98164bfac1c915c6913fc /pw/pw_group.c | |
parent | 223ef3394cf724477520e801c506e253c3223c7d (diff) | |
download | pw-darwin-81b2ca9d3cd92e908e6c7b81a98fd399546829c0.tar.gz pw-darwin-81b2ca9d3cd92e908e6c7b81a98fd399546829c0.tar.zst pw-darwin-81b2ca9d3cd92e908e6c7b81a98fd399546829c0.zip |
Remove '-q' support for pw [user|group] next
the intent of -q in this command is to return as exit status the value of the
next group/user id, which does not make sense given exit status are limited to
values between 0 and 255.
Diffstat (limited to 'pw/pw_group.c')
-rw-r--r-- | pw/pw_group.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c index b9cce0d..e504a12 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -73,11 +73,8 @@ pw_group(int mode, char *name, long id, struct cargs * args) * next gid to stdout */ if (mode == M_NEXT) { - gid_t next = gr_gidpolicy(cnf, id); - if (getarg(args, 'q')) - return next; - printf("%u\n", next); - return EXIT_SUCCESS; + printf("%u\n", gr_gidpolicy(cnd, id)); + return (EXIT_SUCCESS); } if (mode == M_PRINT && getarg(args, 'a')) { |