summaryrefslogtreecommitdiffstats
path: root/lib/Utils/xfuncs.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-22 17:03:30 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-22 17:03:30 +0100
commit27324219246b4fe778ea1bb83f31bbda1ec83055 (patch)
tree795d72bfbda529be81ef9bf03e92762dd692ea68 /lib/Utils/xfuncs.cpp
parent86d7447c394c14dc1e46346b8cac5545e0817615 (diff)
downloadabrt-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.cpp9
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;
-}