]> git.samba.org - samba.git/commitdiff
Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
authorJeremy Allison <jra@samba.org>
Thu, 15 May 2003 17:23:35 +0000 (17:23 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 15 May 2003 17:23:35 +0000 (17:23 +0000)
Jeremy.
(This used to be commit 43ca4b8a8425b97a6bea08b91420bac6cde807b3)

source3/utils/net_groupmap.c

index f4cd8c13a6f294b12f41b687772771a2a2ba015e..905fdf6287101acb536c68c0b93b754ffaa7bd66 100644 (file)
@@ -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;
        }