From 1d744eb4c950a5b7f52a3ca162d3bd0661f957c2 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Tue, 15 Sep 2009 01:54:26 +0530 Subject: Return correct error status when setuid() or setgid() fails --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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\".", -- cgit v1.2.3