summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-31 22:12:31 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-31 22:12:31 +0000
commit8f462098108bd06c25d0d54f3ff624a3f7103a82 (patch)
tree1368e5c2259636eff39a9af78535cd87b1bae2d1 /pw
parente0861fa9e8f60ad49848126462f99eded11a6c9d (diff)
downloadpw-darwin-8f462098108bd06c25d0d54f3ff624a3f7103a82.tar.gz
pw-darwin-8f462098108bd06c25d0d54f3ff624a3f7103a82.tar.zst
pw-darwin-8f462098108bd06c25d0d54f3ff624a3f7103a82.zip
Cast to gid_t for groups not uid_t
Diffstat (limited to 'pw')
-rw-r--r--pw/pw_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c
index 37f2426..c001160 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) : (uid_t)-1;
+ fakegroup.gr_gid = a_gid ? (gid_t) atol(a_gid->val) : (gid_t)-1;
fakegroup.gr_mem = fmems;
return print_group(&fakegroup, getarg(args, 'P') != NULL);
}