diff options
author | Phil Pennock <pdp@exim.org> | 2010-06-07 18:25:57 +0000 |
---|---|---|
committer | Phil Pennock <pdp@exim.org> | 2010-06-07 18:25:57 +0000 |
commit | 655c589513d20178c1979517320fc446f1a197f6 (patch) | |
tree | 6103a3e3b1afd3f3a93585fa97cafef3bc604855 | |
parent | 2a137616793c7fe657cd8b78aba480f682264733 (diff) |
Run when EXIM_USER=notroot specified.
-rw-r--r-- | src/src/buildconfig.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/src/buildconfig.c b/src/src/buildconfig.c index 3cd9b2924..780800c58 100644 --- a/src/src/buildconfig.c +++ b/src/src/buildconfig.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/buildconfig.c,v 1.18 2010/06/07 18:09:07 pdp Exp $ */ +/* $Cambridge: exim/src/src/buildconfig.c,v 1.19 2010/06/07 18:25:57 pdp Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -532,8 +532,9 @@ while (fgets(buffer, sizeof(buffer), base) != NULL) steps to filter out the most obvious ones. */ if ((!uid_not_set && uid == 0) || - (strcmp(username, "root") == 0) || - (strcmp(username, "toor") == 0) ) + ((username != NULL) && ( + (strcmp(username, "root") == 0) || + (strcmp(username, "toor") == 0) ))) { printf("\n*** Exim's internal user must not be root.\n\n"); return 1; |