X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f7c791b769a3a5395d92d29d27aa58f9d442373c..4bb241788d6183df9df6b11a6e6071734b65fce1:/src/src/directory.c diff --git a/src/src/directory.c b/src/src/directory.c index 3273eb89b..5363cd405 100644 --- a/src/src/directory.c +++ b/src/src/directory.c @@ -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_tainted2(name, LOG_MAIN|LOG_PANIC, "Tainted path '%s' for new directory", name)) - { p = US"create"; path = US name; errno = EACCES; goto bad; } +if (is_tainted(name)) + { p = US"create"; path = US name; errno = ERRNO_TAINT; goto bad; } if (parent) {