From: Phil Pennock Date: Mon, 7 Jun 2010 18:25:57 +0000 (+0000) Subject: Run when EXIM_USER=notroot specified. X-Git-Tag: exim-4_73_RC0~38 X-Git-Url: https://git.exim.org/users/jgh/exim.git/commitdiff_plain/655c589513d20178c1979517320fc446f1a197f6?hp=2a137616793c7fe657cd8b78aba480f682264733 Run when EXIM_USER=notroot specified. --- 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;