diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Utils/xfuncs.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Utils/xfuncs.cpp b/lib/Utils/xfuncs.cpp index f360d33b..16f4cb0e 100644 --- a/lib/Utils/xfuncs.cpp +++ b/lib/Utils/xfuncs.cpp @@ -379,12 +379,3 @@ void xsetregid(gid_t rgid, gid_t egid) if (setregid(rgid, egid) != 0) perror_msg_and_die("can't set %cid %lu", 'g', (long)rgid); } - -uid_t getuidbyname(const char* login) -{ - struct passwd* pwd = getpwnam(login); - if (pwd == NULL) - return -1; - - return pwd->pw_uid; -} |