dovecot-1.0: If username lookup fails, return EX_USAGE instead o...

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


details:   http://hg.dovecot.org/dovecot-1.0/rev/c9f075374410
changeset: 5521:c9f075374410
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 29 11:15:29 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 68253f33f55c -r c9f075374410 src/deliver/deliver.c
--- a/src/deliver/deliver.c	Thu Feb 21 18:17:57 2008 +0200
+++ b/src/deliver/deliver.c	Fri Feb 29 11:15:29 2008 +0200
@@ -685,8 +685,9 @@ int main(int argc, char *argv[])
 			if (getenv("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