More care with transport process results
[exim.git] / src / src / directory.c
index f54a781b7c22111016095251c23bf913977a8cd2..11bf7338b98d14b685c8df434c580f4ce4f210b3 100644 (file)
@@ -3,7 +3,7 @@
 *************************************************/
 
 /* Copyright (c) University of Cambridge 1995 - 2009 */
-/* Copyright (c) The Exim Maintainers 2010 - 2018 */
+/* Copyright (c) The Exim Maintainers 2010 - 2021 */
 /* See the file NOTICE for conditions of use and distribution. */
 
 #include "exim.h"
@@ -44,8 +44,8 @@ uschar c = 1;
 struct stat statbuf;
 uschar * path;
 
-if (is_tainted(name)) 
-  { p = US"create"; path = US name; errno = ERRNO_TAINT; goto bad; }
+if (is_tainted2(name, LOG_MAIN|LOG_PANIC, "Tainted path '%s' for new directory", name))
+  { p = US"create"; path = US name; errno = EACCES; goto bad; }
 
 if (parent)
   {