diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-06-15 00:47:52 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-06-15 00:47:52 +0000 |
commit | 9026074f6068f68725241c3e14f7f38bfa698b16 (patch) | |
tree | 4ac900ab034a9813aff43fb89c3b5010d4990290 /source3/lib/system.c | |
parent | 59e0dff0c78add442cb60e72ca7cad7eb1bc7219 (diff) | |
download | samba-9026074f6068f68725241c3e14f7f38bfa698b16.tar.gz samba-9026074f6068f68725241c3e14f7f38bfa698b16.tar.xz samba-9026074f6068f68725241c3e14f7f38bfa698b16.zip |
Add back sys_getpwnam() and freinds to the system.c interface, but don't
use the silly cache any more. Also add group functions and fix a few callers.
Andrew Bartlett
(This used to be commit 41d4b94077c118ecde2bf8792b9bb7ab71c6403e)
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r-- | source3/lib/system.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index 3bf0994621..8b2ba800f5 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -763,6 +763,30 @@ void sys_endpwent(void) endpwent(); } +/************************************************************************** + Wrappers for getpwnam(), getpwuid(), getgrnam(), getgrgid() +****************************************************************************/ + +struct passwd *sys_getpwnam(const char *name) +{ + return getpwnam(name); +} + +struct passwd *sys_getpwuid(uid_t uid) +{ + return getpwuid(uid); +} + +struct group *sys_getgrnam(const char *name) +{ + return getgrnam(name); +} + +struct group *sys_getgrgid(gid_t gid) +{ + return getgrgid(gid); +} + #if 0 /* NOT CURRENTLY USED - JRA */ /************************************************************************** The following are the UNICODE versions of *all* system interface functions |