diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-31 21:44:09 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-05-31 21:44:09 +0000 |
| commit | 52819077bb4348529466a387988b6785585c3829 (patch) | |
| tree | 4293b16a347aa51d971fa48a10e33b3c86b6dc12 /pw/pw_group.c | |
| parent | 861c9030d5b3c835e61181480716d6af26d463e4 (diff) | |
| download | pw-darwin-52819077bb4348529466a387988b6785585c3829.tar.gz pw-darwin-52819077bb4348529466a387988b6785585c3829.zip | |
Cast -1 to uid_t and bump WARNING level to 3
Diffstat (limited to 'pw/pw_group.c')
| -rw-r--r-- | pw/pw_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c index 78adbf1..53757f5 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -116,7 +116,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args) char *fmems[1]; fmems[0] = NULL; fakegroup.gr_name = a_name ? a_name->val : "nogroup"; - fakegroup.gr_gid = a_gid ? (gid_t) atol(a_gid->val) : -1; + fakegroup.gr_gid = a_gid ? (gid_t) atol(a_gid->val) : (uid_t)-1; fakegroup.gr_mem = fmems; return print_group(&fakegroup, getarg(args, 'P') != NULL); } |
