summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-24 15:25:05 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-24 15:25:05 +0100
commit43f275008f1d68c6adee461c531d73c65b6b7483 (patch)
treece158dc3104c7b4332d097d8bb37b807ed654bd5 /lib
parent818e0722e1a730cfa30d911be510641ef23dc446 (diff)
downloadsamba-43f275008f1d68c6adee461c531d73c65b6b7483.tar.gz
samba-43f275008f1d68c6adee461c531d73c65b6b7483.tar.bz2
samba-43f275008f1d68c6adee461c531d73c65b6b7483.zip
lib/util: Remove dummy wrapper for getpwuid().
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,