diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-15 17:23:35 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-15 17:23:35 +0000 |
commit | 5ffd33df94855b57dd3a04e2fd6bbf10f3bf0e89 (patch) | |
tree | 2e5bbed7241ce116709708eb07bba3c32e19f7e5 /source3/utils | |
parent | a975bc2471dfe83848cd12a9ca757184e0e20612 (diff) | |
download | samba-5ffd33df94855b57dd3a04e2fd6bbf10f3bf0e89.tar.gz samba-5ffd33df94855b57dd3a04e2fd6bbf10f3bf0e89.tar.bz2 samba-5ffd33df94855b57dd3a04e2fd6bbf10f3bf0e89.zip |
Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
Jeremy.
(This used to be commit 43ca4b8a8425b97a6bea08b91420bac6cde807b3)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_groupmap.c | 2 |
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; } |