Use sys_getgrnam not getgrnam. Pointed out by Herb.
authorJeremy Allison <jra@samba.org>
Thu, 24 Jul 2008 18:56:49 +0000 (11:56 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 24 Jul 2008 18:56:49 +0000 (11:56 -0700)
Jeremy.
(This used to be commit 43eec6517023e7865618791c231e54cc1b800ceb)

source3/passdb/util_unixsids.c

index 8c92f9577801d5e43521d80c0fe272f5458f818d..83a5f5cab47210f4ebaf908367c80abd6c7d9243 100644 (file)
@@ -93,7 +93,7 @@ bool lookup_unix_group_name(const char *name, DOM_SID *sid)
 {
        struct group *grp;
 
-       grp = getgrnam(name);
+       grp = sys_getgrnam(name);
        if (grp == NULL) {
                return False;
        }