summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_groupmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index f4cd8c13a6..905fdf6287 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -271,7 +271,7 @@ int net_groupmap_add(int argc, const char **argv)
if (ntcomment[0])
fstrcpy(ntcomment, "Local Unix group");
- if ( !(gid = nametogid(unixgrp)) ) {
+ if ( (gid = nametogid(unixgrp)) == (gid_t)-1 ) {
d_printf("Can't lookup UNIX group %s\n", ntgroup);
return -1;
}