From 32fd6d639a5f51f1cc5fb0e81356009a2c9df359 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 Mar 2012 15:26:36 +0100 Subject: lib/util: Remove dummy wrapper for getgrgid(). --- lib/util/util_pw.c | 9 --------- lib/util/util_pw.h | 1 - source3/torture/cmd_vfs.c | 6 +++--- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/lib/util/util_pw.c b/lib/util/util_pw.c index 9047ec15c0..ab3808f006 100644 --- a/lib/util/util_pw.c +++ b/lib/util/util_pw.c @@ -28,15 +28,6 @@ #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) { diff --git a/lib/util/util_pw.h b/lib/util/util_pw.h index 6176d47311..fae4da9a0c 100644 --- a/lib/util/util_pw.h +++ b/lib/util/util_pw.h @@ -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); diff --git a/source3/torture/cmd_vfs.c b/source3/torture/cmd_vfs.c index 11d19184e4..715dda9da3 100644 --- a/source3/torture/cmd_vfs.c +++ b/source3/torture/cmd_vfs.c @@ -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; -- cgit