de-taint any passing belowhome
[users/jgh/exim.git] / src / src / transports / appendfile.c
index 908fd8ad90d5f57680f822135e4ec5bbe5505466..95857a53e01fb705687e60f7b5c2982eb1fbfa7f 100644 (file)
@@ -1337,7 +1337,7 @@ if (!isdirectory)
 /*XXX could we just de-taint on belowhome? */
 
   if (  (allow_creation_here = check_creation(path, ob->create_file))
-     && *ob->create_file_string == '/')
+     && ob->create_file == create_belowhome)
     if (is_tainted(path))
       {
       DEBUG(D_transport) debug_printf("de-tainting path '%s'\n", path);
@@ -2177,7 +2177,7 @@ else
   it, de-taint. Otherwise check for taint. */
 
   if (is_tainted(path))
-    if (*ob->create_file_string = '/')
+    if (ob->create_file == create_belowhome)
       {
       DEBUG(D_transport) debug_printf("de-tainting path '%s'\n", path);
       path = string_copy_taint(path, FALSE);