dovecot-1.1: If username lookup fails, return EX_USAGE instead o...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Feb 29 11:12:17 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/553eb182004a
changeset: 7309:553eb182004a
user: Timo Sirainen <tss at iki.fi>
date: Fri Feb 29 11:15:05 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 e318f3c8a724 -r 553eb182004a src/deliver/deliver.c
--- 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 @@ 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