diff options
author | Karel Klic <kklic@redhat.com> | 2010-04-29 15:18:17 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-04-29 15:18:17 +0200 |
commit | a345b357a14f7e5ad259160f69d9c2129f2c4e01 (patch) | |
tree | e2f936e07ad59fb3f23f54f68e8df65ceb03d04d /lib/Utils/xfuncs.cpp | |
parent | e465938fa36e51eff4bd62b736bcc8d66f4d0785 (diff) | |
download | abrt-a345b357a14f7e5ad259160f69d9c2129f2c4e01.tar.gz abrt-a345b357a14f7e5ad259160f69d9c2129f2c4e01.tar.xz abrt-a345b357a14f7e5ad259160f69d9c2129f2c4e01.zip |
get_home_dir returns const char* instead of std::string
Diffstat (limited to 'lib/Utils/xfuncs.cpp')
-rw-r--r-- | lib/Utils/xfuncs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Utils/xfuncs.cpp b/lib/Utils/xfuncs.cpp index 53c10f9a..89273675 100644 --- a/lib/Utils/xfuncs.cpp +++ b/lib/Utils/xfuncs.cpp @@ -276,11 +276,11 @@ void xstat(const char *name, struct stat *stat_buf) perror_msg_and_die("can't stat '%s'", name); } -std::string get_home_dir(uid_t uid) +const char *get_home_dir(uid_t uid) { struct passwd* pw = getpwuid(uid); // TODO: handle errno - return pw ? pw->pw_dir : ""; + return pw ? pw->pw_dir : NULL; } // Die if we can't open a file and return a fd |