summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-15 17:23:37 +0000
committerJeremy Allison <jra@samba.org>2003-05-15 17:23:37 +0000
commit0f4b795d2824ce699927f42dc6ccdfa6c00e8561 (patch)
tree13fd2dc4065b737fd4ff38f2cd1bd35e79c723e8
parent88b1670e8c0b084388f0f5b99af9a76175274263 (diff)
downloadsamba-0f4b795d2824ce699927f42dc6ccdfa6c00e8561.tar.gz
samba-0f4b795d2824ce699927f42dc6ccdfa6c00e8561.tar.bz2
samba-0f4b795d2824ce699927f42dc6ccdfa6c00e8561.zip
Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
Jeremy. (This used to be commit 9202362ee13c14bd7127713e3976bb9ee11038df)
-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;
}