diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/src/expand.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/src/expand.c b/src/src/expand.c index 86d410499..92e342d37 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/expand.c,v 1.38 2005/08/01 14:00:35 ph10 Exp $ */ +/* $Cambridge: exim/src/src/expand.c,v 1.39 2005/08/01 15:01:12 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -4846,6 +4846,12 @@ while (*s != 0) mode_t mode; struct stat st; + if ((expand_forbid & RDO_EXISTS) != 0) + { + expand_string_message = US"Use of the stat() expansion is not permitted"; + goto EXPAND_FAILED; + } + if (stat(CS sub, &st) < 0) { expand_string_message = string_sprintf("stat(%s) failed: %s", |