directory
[exim.git] / src / src / directory.c
index 2d4d565f4ede31504743571a5b1ded263d0ebc42..9f88f4141f2f632b145c6354bbceead318ef7bc9 100644 (file)
@@ -44,6 +44,9 @@ uschar c = 1;
 struct stat statbuf;
 uschar * path;
 
+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)
   {
   path = string_sprintf("%s%s%s", parent, US"/", name);