diff src/permissions.c @ 262:fc1c6425c024

s/EXIT_SUCCESS/0/ && s/EXIT_FAILURE/1/ The constants are all to bulky. We should have different, meaningful exit codes anyway.
author markus schnalke <meillo@marmaro.de>
date Thu, 02 Dec 2010 17:11:25 -0300
parents 996b53a50f55
children 41958685480d
line wrap: on
line diff
--- a/src/permissions.c	Thu Dec 02 16:52:39 2010 -0300
+++ b/src/permissions.c	Thu Dec 02 17:11:25 2010 -0300
@@ -75,11 +75,11 @@
 
 	if (setegid(gid) != 0) {
 		logwrite(LOG_ALERT, "could not change gid to %d: %s\n", gid, strerror(errno));
-		exit(EXIT_FAILURE);
+		exit(1);
 	}
 	if (seteuid(uid) != 0) {
 		logwrite(LOG_ALERT, "could not change uid to %d: %s\n", uid, strerror(errno));
-		exit(EXIT_FAILURE);
+		exit(1);
 	}
 }
 
@@ -89,7 +89,7 @@
 	if (!conf.run_as_user) {
 		if (!is_privileged_user(old_uid)) {
 			fprintf(stderr, "must be root, %s or in group %s for %s.\n", DEF_MAIL_USER, DEF_MAIL_GROUP, task_name);
-			exit(EXIT_FAILURE);
+			exit(1);
 		}
 
 		set_euidgid(conf.mail_uid, conf.mail_gid, NULL, NULL);