X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fdirectory.c;h=94303db0bdc244c205f7a22bcb5c835c197ba579;hb=4f7a93c27e3d43b44c42d3fc503f03b9b42ca622;hp=3273eb89b066a23f8ed35dbc7f7f0b3f4e5434f0;hpb=f7c791b769a3a5395d92d29d27aa58f9d442373c;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/directory.c b/src/src/directory.c index 3273eb89b..94303db0b 100644 --- a/src/src/directory.c +++ b/src/src/directory.c @@ -2,9 +2,10 @@ * Exim - an Internet mail transport agent * *************************************************/ +/* Copyright (c) The Exim Maintainers 2010 - 2022 */ /* Copyright (c) University of Cambridge 1995 - 2009 */ -/* Copyright (c) The Exim Maintainers 2010 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "exim.h" @@ -44,8 +45,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) {