summaryrefslogtreecommitdiffstats
path: root/lib/Utils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-22 15:44:24 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-22 15:44:24 +0100
commit97a21512ea34a2cc2931516033681e3d75436349 (patch)
treedb0a38a8c13fa8724e61c3601bc16f58a3714936 /lib/Utils
parentac7addbb8a1b0cd343b7cf6cb0b38a3014abef9a (diff)
downloadabrt-97a21512ea34a2cc2931516033681e3d75436349.tar.gz
abrt-97a21512ea34a2cc2931516033681e3d75436349.tar.xz
abrt-97a21512ea34a2cc2931516033681e3d75436349.zip
remove unused getuidbyname
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils')
-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;
-}