summaryrefslogtreecommitdiffstats
path: root/lib/Utils
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-02-12 16:06:50 +0100
committerKarel Klic <kklic@redhat.com>2010-02-12 16:06:50 +0100
commite08c1d7c3c56c99cafde076529b17c956ef3aeb0 (patch)
tree9904f3f0c79bf23a9cb9a6795dfe2e504c9cee34 /lib/Utils
parent349ee9dff57f6fe232a7fc146cba7581402daa32 (diff)
downloadabrt-e08c1d7c3c56c99cafde076529b17c956ef3aeb0.tar.gz
abrt-e08c1d7c3c56c99cafde076529b17c956ef3aeb0.tar.xz
abrt-e08c1d7c3c56c99cafde076529b17c956ef3aeb0.zip
get_home_dir uses uid_t for the uid
Diffstat (limited to 'lib/Utils')
-rw-r--r--lib/Utils/xfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Utils/xfuncs.cpp b/lib/Utils/xfuncs.cpp
index 16f4cb0e..7301d7f0 100644
--- a/lib/Utils/xfuncs.cpp
+++ b/lib/Utils/xfuncs.cpp
@@ -252,7 +252,7 @@ void xstat(const char *name, struct stat *stat_buf)
perror_msg_and_die("can't stat '%s'", name);
}
-std::string get_home_dir(int uid)
+std::string get_home_dir(uid_t uid)
{
struct passwd* pw = getpwuid(uid);
return pw ? pw->pw_dir : "";