From: Heiko Schlittermann (HS12-RIPE) Date: Thu, 1 Apr 2021 19:28:59 +0000 (+0200) Subject: directory X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/5f41e800ce9cc7ad154047298914df955e905bf4 directory --- diff --git a/src/src/directory.c b/src/src/directory.c index 2d4d565f4..9f88f4141 100644 --- a/src/src/directory.c +++ b/src/src/directory.c @@ -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);