diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-22 17:03:30 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-22 17:03:30 +0100 |
commit | 27324219246b4fe778ea1bb83f31bbda1ec83055 (patch) | |
tree | 795d72bfbda529be81ef9bf03e92762dd692ea68 /lib/Utils/xfuncs.cpp | |
parent | 86d7447c394c14dc1e46346b8cac5545e0817615 (diff) | |
download | abrt-27324219246b4fe778ea1bb83f31bbda1ec83055.tar.gz abrt-27324219246b4fe778ea1bb83f31bbda1ec83055.tar.xz abrt-27324219246b4fe778ea1bb83f31bbda1ec83055.zip |
remove unused getuidbyname
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/xfuncs.cpp')
-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; -} |