diff options
author | Karel Klic <kklic@redhat.com> | 2010-02-12 16:06:50 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-02-12 16:06:50 +0100 |
commit | e08c1d7c3c56c99cafde076529b17c956ef3aeb0 (patch) | |
tree | 9904f3f0c79bf23a9cb9a6795dfe2e504c9cee34 /lib/Utils | |
parent | 349ee9dff57f6fe232a7fc146cba7581402daa32 (diff) | |
download | abrt-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.cpp | 2 |
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 : ""; |