[exim-cvs] directory

Inizio della pagina
Delete this message
Reply to this message
Autore: Exim Git Commits Mailing List
Data:  
To: exim-cvs
Oggetto: [exim-cvs] directory
Gitweb: https://git.exim.org/exim.git/commitdiff/f7c791b769a3a5395d92d29d27aa58f9d442373c
Commit:     f7c791b769a3a5395d92d29d27aa58f9d442373c
Parent:     f7da81e789e2f20b00f46f07260488f337984b84
Author:     Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Thu Apr 1 21:28:59 2021 +0200
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Thu Jun 24 21:43:10 2021 +0200


    directory


    (cherry picked from commit 5f41e800ce9cc7ad154047298914df955e905bf4)
---
 src/src/directory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/src/directory.c b/src/src/directory.c
index f54a781..3273eb8 100644
--- a/src/src/directory.c
+++ b/src/src/directory.c
@@ -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)
{