From 655c589513d20178c1979517320fc446f1a197f6 Mon Sep 17 00:00:00 2001 From: Phil Pennock Date: Mon, 7 Jun 2010 18:25:57 +0000 Subject: Run when EXIM_USER=notroot specified. --- src/src/buildconfig.c | 7 ++++--- 1 file 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; -- cgit v1.2.3