Gitweb:
https://git.exim.org/exim.git/commitdiff/e8b8b133c685e7b09f672016d117c7d8b49e70b1
Commit: e8b8b133c685e7b09f672016d117c7d8b49e70b1
Parent: 4a2bd5dc2f157c50b7e4e7491eac1c930efd2100
Author: Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Sun Mar 28 10:59:46 2021 +0200
Committer: Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Thu Jun 24 21:43:07 2021 +0200
rda
(cherry picked from commit a6da9c67acaee699616516be141d600cc178a633)
---
src/src/rda.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/src/rda.c b/src/src/rda.c
index fb3714e..3b45843 100644
--- a/src/src/rda.c
+++ b/src/src/rda.c
@@ -179,10 +179,8 @@ struct stat statbuf;
/* Reading a file is a form of expansion; we wish to deny attackers the
capability to specify the file name. */
-if (is_tainted(filename))
+if (*error = is_tainted2(filename, 0, "Tainted name '%s' for file read not permitted\n", filename))
{
- *error = string_sprintf("Tainted name '%s' for file read not permitted\n",
- filename);
*yield = FF_ERROR;
return NULL;
}