summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-05-06 18:05:45 +0000
committerLuke Leighton <lkcl@samba.org>1999-05-06 18:05:45 +0000
commit150645f955d1f15b0ea43069020070424f774521 (patch)
tree392a53016e1af6844066696570b2180344578744 /source3/lib/util.c
parentc6e5eb5bc29565da4a1b5d528696b35d5887df7d (diff)
downloadsamba-150645f955d1f15b0ea43069020070424f774521.tar.gz
samba-150645f955d1f15b0ea43069020070424f774521.tar.bz2
samba-150645f955d1f15b0ea43069020070424f774521.zip
Jani Jaakkola's "getpwuid() / getpwnam()" hash-cache-hack
(This used to be commit 899fc053c50448db65092d9f25fea99433cfb29f)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index dcad289071..8852ada0cc 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2456,19 +2456,6 @@ void free_unix_grps(int ngroups, struct group *p_groups)
}
/*******************************************************************
-turn a uid into a user name
-********************************************************************/
-char *uidtoname(uid_t uid)
-{
- static char name[40];
- struct passwd *pass = getpwuid(uid);
- if (pass) return(pass->pw_name);
- slprintf(name, sizeof(name) - 1, "%d",(int)uid);
- return(name);
-}
-
-
-/*******************************************************************
turn a gid into a group name
********************************************************************/