[exim-cvs] pipe

Inizio della pagina
Delete this message
Reply to this message
Autore: Exim Git Commits Mailing List
Data:  
To: exim-cvs
Oggetto: [exim-cvs] pipe
Gitweb: https://git.exim.org/exim.git/commitdiff/dbac5a049acbe645a816b4a5e895c5be0de53483
Commit:     dbac5a049acbe645a816b4a5e895c5be0de53483
Parent:     f7509ba6fb5e1033c1406b87f057c9c48a217d27
Author:     Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Fri Apr 2 17:30:27 2021 +0200
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Thu Jun 24 21:43:09 2021 +0200


    pipe


    (cherry picked from commit f9628406706112be459adb3f121db8e6cf282c2d)
---
 src/src/transports/pipe.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)


diff --git a/src/src/transports/pipe.c b/src/src/transports/pipe.c
index 1cb574e..9296814 100644
--- a/src/src/transports/pipe.c
+++ b/src/src/transports/pipe.c
@@ -592,13 +592,16 @@ if (!cmd || !*cmd)
     tblock->name);
   return FALSE;
   }
-if (is_tainted(cmd))
+
+{ uschar *m;
+if (m = is_tainted2(cmd, 0, "Tainted '%s' (command "
+    "for %s transport) not permitted", cmd, tblock->name))
   {
-  addr->message = string_sprintf("Tainted '%s' (command "
-    "for %s transport) not permitted", cmd, tblock->name);
   addr->transport_return = PANIC;
+  addr->message = m;
   return FALSE;
   }
+}


/* When a pipe is set up by a filter file, there may be values for $thisaddress
and numerical the variables in existence. These are passed in