summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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 981e017ab2..5ee4456759 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 getpwuid(), getgrnam(), getgrgid()
+ Wrappers for getgrnam(), getgrgid()
****************************************************************************/
-struct passwd *sys_getpwuid(uid_t uid)
-{
- return getpwuid(uid);
-}
-
struct group *sys_getgrnam(const char *name)
{
return getgrnam(name);
@@ -92,7 +87,7 @@ struct passwd *getpwuid_alloc(TALLOC_CTX *mem_ctx, uid_t uid)
{
struct passwd *temp;
- temp = sys_getpwuid(uid);
+ temp = getpwuid(uid);
if (!temp) {
#if 0
diff --git a/lib/util/util_pw.h b/lib/util/util_pw.h
index ffbb4c0691..b46197b9ce 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_getpwuid(uid_t uid);
struct group *sys_getgrnam(const char *name);
struct group *sys_getgrgid(gid_t gid);
struct passwd *tcopy_passwd(TALLOC_CTX *mem_ctx,