lib/util: Remove dummy wrapper for getgrgid().
authorJelmer Vernooij <jelmer@samba.org>
Sat, 24 Mar 2012 14:26:36 +0000 (15:26 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 24 Mar 2012 14:26:36 +0000 (15:26 +0100)
lib/util/util_pw.c
lib/util/util_pw.h
source3/torture/cmd_vfs.c

index 9047ec15c0e31474874abd97d1a01f179311bfe8..ab3808f006ef77c81e4b112483145cbae690692b 100644 (file)
 #include "system/passwd.h"
 #include "lib/util/util_pw.h"
 
-/**************************************************************************
- Wrappers for getgrgid()
-****************************************************************************/
-
-struct group *sys_getgrgid(gid_t gid)
-{
-       return getgrgid(gid);
-}
-
 struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx,
                            const struct passwd *from)
 {
index 6176d47311f8a56c1ba57f3dc6d56340be15e4b0..fae4da9a0c34c9946579948646051ec9fa68ed9f 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef __LIB_UTIL_UTIL_PW_H__
 #define __LIB_UTIL_UTIL_PW_H__
 
-struct group *sys_getgrgid(gid_t gid);
 struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx,
                            const struct passwd *from);
 struct passwd *getpwnam_alloc(TALLOC_CTX *mem_ctx, const char *name);
index 11d19184e447d871c4cb8278c282edc4ff54788f..715dda9da3165a4b38a473d26cf7607639db3148 100644 (file)
@@ -610,7 +610,7 @@ static NTSTATUS cmd_stat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
        pwd = getpwuid(st.st_ex_uid);
        if (pwd != NULL) user = pwd->pw_name;
        else user = null_string;
-       grp = sys_getgrgid(st.st_ex_gid);
+       grp = getgrgid(st.st_ex_gid);
        if (grp != NULL) group = grp->gr_name;
        else group = null_string;
 
@@ -681,7 +681,7 @@ static NTSTATUS cmd_fstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc,
        pwd = getpwuid(st.st_ex_uid);
        if (pwd != NULL) user = pwd->pw_name;
        else user = null_string;
-       grp = sys_getgrgid(st.st_ex_gid);
+       grp = getgrgid(st.st_ex_gid);
        if (grp != NULL) group = grp->gr_name;
        else group = null_string;
 
@@ -750,7 +750,7 @@ static NTSTATUS cmd_lstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc,
        pwd = getpwuid(st.st_ex_uid);
        if (pwd != NULL) user = pwd->pw_name;
        else user = null_string;
-       grp = sys_getgrgid(st.st_ex_gid);
+       grp = getgrgid(st.st_ex_gid);
        if (grp != NULL) group = grp->gr_name;
        else group = null_string;