net groupmap add: Can't lookup UNIX group - PATCH

Alex Deiter tiamat at komi.mts.ru
Thu May 15 14:20:18 GMT 2003


--- utils/net_groupmap.c.orig   Thu May 15 17:00:07 2003
+++ utils/net_groupmap.c        Thu May 15 18:19:13 2003
@@ -271,8 +271,8 @@
        if (ntcomment[0])
                fstrcpy(ntcomment, "Local Unix group");

-       if ( !(gid = nametogid(unixgrp)) ) {
-               d_printf("Can't lookup UNIX group %s\n", ntgroup);
+       if ( (gid = nametogid(unixgrp)) == (gid_t)-1 ) {
+               d_printf("Can't lookup UNIX group %s\n", unixgrp);
                return -1;
        }

Thanks!



More information about the samba-technical mailing list