diff options
author | Karel Klic <kklic@redhat.com> | 2009-12-04 16:07:36 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2009-12-04 16:07:36 +0100 |
commit | 6000bd05267dda6905f0324921d113167b7cc69d (patch) | |
tree | 7584baca5bba18af1cdee348551ea82d351e4d76 /src/Daemon/Daemon.cpp | |
parent | 8e5a812ce758321fb4f1ee4c181445db34ad39d8 (diff) | |
download | abrt-6000bd05267dda6905f0324921d113167b7cc69d.tar.gz abrt-6000bd05267dda6905f0324921d113167b7cc69d.tar.xz abrt-6000bd05267dda6905f0324921d113167b7cc69d.zip |
Proper error message on chown failure
Diffstat (limited to 'src/Daemon/Daemon.cpp')
-rw-r--r-- | src/Daemon/Daemon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 6f901f39..aeeb0cd5 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -1,4 +1,4 @@ -/* +/* -*-mode:c++;c-file-style:"bsd";c-basic-offset:4;indent-tabs-mode:nil-*- Copyright (C) 2009 Jiri Moskovcak (jmoskovc@redhat.com) Copyright (C) 2009 RedHat inc. @@ -657,7 +657,7 @@ static void ensure_writable_dir(const char *dir, mode_t mode, const char *group) perror_msg_and_die("Can't find group '%s'", group); if ((sb.st_uid != 0 || sb.st_gid != gr->gr_gid) && chown(dir, 0, gr->gr_gid) != 0) - perror_msg_and_die("Can't set owner 0:0 on '%s'", dir); + perror_msg_and_die("Can't set owner 0:%u on '%s'", (unsigned int)gr->gr_gid, dir); if ((sb.st_mode & 07777) != mode && chmod(dir, mode) != 0) perror_msg_and_die("Can't set mode %o on '%s'", mode, dir); } |