diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-09-15 01:54:26 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-09-15 01:55:16 +0530 |
commit | 1d744eb4c950a5b7f52a3ca162d3bd0661f957c2 (patch) | |
tree | e312954de4a5dd0357f55117ff9a153eb396bf0e | |
parent | 56748c5e65af91daadc828d438bba6010a6aff0e (diff) | |
download | tinyproxy-1d744eb4c950a5b7f52a3ca162d3bd0661f957c2.tar.gz tinyproxy-1d744eb4c950a5b7f52a3ca162d3bd0661f957c2.zip |
Return correct error status when setuid() or setgid() fails
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -228,7 +228,7 @@ change_user (const char *program) fprintf (stderr, "%s: Unable to change to group \"%s\".\n", program, config.group); - exit (EX_CANTCREAT); + exit (EX_NOPERM); } log_message (LOG_INFO, "Now running as group \"%s\".", @@ -255,7 +255,7 @@ change_user (const char *program) fprintf (stderr, "%s: Unable to change to user \"%s\".\n", program, config.user); - exit (EX_CANTCREAT); + exit (EX_NOPERM); } log_message (LOG_INFO, "Now running as user \"%s\".", |