lib/util: Remove dummy wrapper for getgrnam().
authorJelmer Vernooij <jelmer@samba.org>
Sat, 24 Mar 2012 14:25:48 +0000 (15:25 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 24 Mar 2012 14:25:48 +0000 (15:25 +0100)
lib/util/util_pw.c
lib/util/util_pw.h
source3/lib/util.c
source3/lib/util_unixsids.c

index 5ee4456..9047ec1 100644 (file)
 #include "lib/util/util_pw.h"
 
 /**************************************************************************
- Wrappers for getgrnam(), getgrgid()
+ Wrappers for getgrgid()
 ****************************************************************************/
 
-struct group *sys_getgrnam(const char *name)
-{
-       return getgrnam(name);
-}
-
 struct group *sys_getgrgid(gid_t gid)
 {
        return getgrgid(gid);
index b46197b..6176d47 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef __LIB_UTIL_UTIL_PW_H__
 #define __LIB_UTIL_UTIL_PW_H__
 
-struct group *sys_getgrnam(const char *name);
 struct group *sys_getgrgid(gid_t gid);
 struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx,
                            const struct passwd *from);
index 81d476b..9d3d787 100644 (file)
@@ -844,7 +844,7 @@ gid_t nametogid(const char *name)
        if ((p != name) && (*p == '\0'))
                return g;
 
-       grp = sys_getgrnam(name);
+       grp = getgrnam(name);
        if (grp)
                return(grp->gr_gid);
        return (gid_t)-1;
index 8db66d6..4a38c57 100644 (file)
@@ -103,7 +103,7 @@ bool lookup_unix_group_name(const char *name, struct dom_sid *sid)
 {
        struct group *grp;
 
-       grp = sys_getgrnam(name);
+       grp = getgrnam(name);
        if (grp == NULL) {
                return False;
        }