summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-24 15:24:15 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-24 15:24:15 +0100
commit818e0722e1a730cfa30d911be510641ef23dc446 (patch)
tree584a8e1a0682c8dbafd92139b1b51c0686d53681 /lib
parent3be6258912939fb538d7bcb492483ae2ab52391b (diff)
downloadsamba-818e0722e1a730cfa30d911be510641ef23dc446.tar.gz
samba-818e0722e1a730cfa30d911be510641ef23dc446.tar.bz2
samba-818e0722e1a730cfa30d911be510641ef23dc446.zip
lib/util: Remove dummy wrapper for getpwnam().
Diffstat (limited to 'lib')
-rw-r--r--lib/util/util_pw.c9
-rw-r--r--lib/util/util_pw.h1
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/util/util_pw.c b/lib/util/util_pw.c
index 43ac0b3467..981e017ab2 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 getpwnam(), getpwuid(), getgrnam(), getgrgid()
+ Wrappers for getpwuid(), getgrnam(), getgrgid()
****************************************************************************/
-struct passwd *sys_getpwnam(const char *name)
-{
- return getpwnam(name);
-}
-
struct passwd *sys_getpwuid(uid_t uid)
{
return getpwuid(uid);
@@ -75,7 +70,7 @@ struct passwd *getpwnam_alloc(TALLOC_CTX *mem_ctx, const char *name)
{
struct passwd *temp;
- temp = sys_getpwnam(name);
+ temp = getpwnam(name);
if (!temp) {
#if 0
diff --git a/lib/util/util_pw.h b/lib/util/util_pw.h
index b572502fc5..ffbb4c0691 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 passwd *sys_getpwnam(const char *name);
struct passwd *sys_getpwuid(uid_t uid);
struct group *sys_getgrnam(const char *name);
struct group *sys_getgrgid(gid_t gid);