changeset 7309:553eb182004a HEAD

If username lookup fails, return EX_USAGE instead of EX_TEMPFAIL because we haven't yet opened the log file.
author Timo Sirainen <tss@iki.fi>
date Fri, 29 Feb 2008 11:15:05 +0200
parents e318f3c8a724
children 18766f26a7ed
files src/deliver/deliver.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/deliver/deliver.c	Fri Feb 29 05:02:50 2008 +0200
+++ b/src/deliver/deliver.c	Fri Feb 29 11:15:05 2008 +0200
@@ -815,8 +815,9 @@
 			if (home == NULL)
 				env_put(t_strconcat("HOME=", pw->pw_dir, NULL));
 		} else if (user == NULL) {
-			i_fatal("Couldn't lookup our username (uid=%s)",
-				dec2str(process_euid));
+			i_fatal_status(EX_USAGE,
+				       "Couldn't lookup our username (uid=%s)",
+				       dec2str(process_euid));
 		}
 	} else {
 		i_fatal_status(EX_USAGE,