rda
[exim.git] / src / src / rda.c
index fb3714ea21bc2e35cd507d42e35f4a0761620fd1..3b458430afe35e29206f87e1bb2f26a508d48b1d 100644 (file)
@@ -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;
   }