]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/expand.c
Remove one case of BASE64 error detection FTTB (undocumented anyway)
[user/henk/code/exim.git] / src / src / expand.c
index 86d410499de4f519c49e2775914250ba595ec39f..92e342d376ab54e60cd5aa67bd0927e846e08b20 100644 (file)
@@ -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",