summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-15 01:54:26 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-15 01:55:16 +0530
commit1d744eb4c950a5b7f52a3ca162d3bd0661f957c2 (patch)
treee312954de4a5dd0357f55117ff9a153eb396bf0e /src
parent56748c5e65af91daadc828d438bba6010a6aff0e (diff)
downloadtinyproxy-1d744eb4c950a5b7f52a3ca162d3bd0661f957c2.tar.gz
tinyproxy-1d744eb4c950a5b7f52a3ca162d3bd0661f957c2.zip
Return correct error status when setuid() or setgid() fails
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 2442cf8..7a3cae8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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\".",