git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a13761
)
Run when EXIM_USER=notroot specified.
author
Phil Pennock
<pdp@exim.org>
Mon, 7 Jun 2010 18:25:57 +0000
(18:25 +0000)
committer
Phil Pennock
<pdp@exim.org>
Mon, 7 Jun 2010 18:25:57 +0000
(18:25 +0000)
src/src/buildconfig.c
patch
|
blob
|
history
diff --git
a/src/src/buildconfig.c
b/src/src/buildconfig.c
index 3cd9b2924d5fbdfa03be3b4fc8a538bdda1d827d..780800c5831ef298f3b8cc154c73ac5036a19716 100644
(file)
--- a/
src/src/buildconfig.c
+++ b/
src/src/buildconfig.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/buildconfig.c,v 1.1
8 2010/06/07 18:09:0
7 pdp Exp $ */
+/* $Cambridge: exim/src/src/buildconfig.c,v 1.1
9 2010/06/07 18:25:5
7 pdp Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* 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) ||
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;
{
printf("\n*** Exim's internal user must not be root.\n\n");
return 1;