diff options
Diffstat (limited to 'support/suexec.c')
-rw-r--r-- | support/suexec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/support/suexec.c b/support/suexec.c index 8b81eebd37..33e95343ea 100644 --- a/support/suexec.c +++ b/support/suexec.c @@ -543,7 +543,8 @@ int main(int argc, char *argv[]) * and setgid() to the target group. If unsuccessful, error out. */ if (((setgid(gid)) != 0) || (initgroups(actual_uname, gid) != 0)) { - log_err("failed to setgid (%lu: %s)\n", (unsigned long)gid, cmd); + log_err("failed to setgid/initgroups (%lu: %s): %s\n", + (unsigned long)gid, cmd, strerror(errno)); exit(109); } @@ -551,7 +552,8 @@ int main(int argc, char *argv[]) * setuid() to the target user. Error out on fail. */ if ((setuid(uid)) != 0) { - log_err("failed to setuid (%lu: %s)\n", (unsigned long)uid, cmd); + log_err("failed to setuid (%lu: %s): %s\n", + (unsigned long)uid, cmd, strerror(errno)); exit(110); } |