summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/util_pw.c7
-rw-r--r--lib/util/util_pw.h1
-rw-r--r--source3/lib/util.c2
-rw-r--r--source3/lib/util_unixsids.c2
4 files changed, 3 insertions, 9 deletions
diff --git a/lib/util/util_pw.c b/lib/util/util_pw.c
index 5ee4456759..9047ec15c0 100644
--- a/lib/util/util_pw.c
+++ b/lib/util/util_pw.c
@@ -29,14 +29,9 @@
#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);
diff --git a/lib/util/util_pw.h b/lib/util/util_pw.h
index b46197b9ce..6176d47311 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_getgrnam(const char *name);
struct group *sys_getgrgid(gid_t gid);
struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx,
const struct passwd *from);
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 81d476b1da..9d3d787d63 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -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;
diff --git a/source3/lib/util_unixsids.c b/source3/lib/util_unixsids.c
index 8db66d6e89..4a38c57025 100644
--- a/source3/lib/util_unixsids.c
+++ b/source3/lib/util_unixsids.c
@@ -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;
}