dovecot: If username lookup fails, return EX_USAGE instead of EX...

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 29 11:12:24 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/1d79c534b54b
changeset: 7304:1d79c534b54b
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 29 11:14:45 2008 +0200
description:
If username lookup fails, return EX_USAGE instead of EX_TEMPFAIL because we
haven't yet opened the log file.

diffstat:

1 file changed, 3 insertions(+), 2 deletions(-)
src/deliver/deliver.c |    5 +++--

diffs (15 lines):

diff -r 18f5d0538baa -r 1d79c534b54b src/deliver/deliver.c
--- a/src/deliver/deliver.c	Fri Feb 29 05:02:48 2008 +0200
+++ b/src/deliver/deliver.c	Fri Feb 29 11:14:45 2008 +0200
@@ -815,8 +815,9 @@ int main(int argc, char *argv[])
 			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,


More information about the dovecot-cvs mailing list