[prev in list] [next in list] [prev in thread] [next in thread]
List: dovecot-cvs
Subject: dovecot: If username lookup fails, return EX_USAGE instead of EX...
From: dovecot () dovecot ! org (dovecot at dovecot ! org)
Date: 2008-02-29 9:12:24
Message-ID: hg.1d79c534b54b.1204276344.558208662 () syksy ! dovecot ! org
[Download RAW message or body]
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,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic