Silence the compiler
[exim.git] / src / src / transports / appendfile.c
index 7dbbaa2f9b223bb23b070b3dbe4d8cd86c05a474..c0f4de4c83196095a430b51f301eb6f85e78de14 100644 (file)
@@ -217,6 +217,9 @@ Arguments:
 Returns:     OK, FAIL, or DEFER
 */
 
+void
+open_logs(void);
+
 static int
 appendfile_transport_setup(transport_instance *tblock, address_item *addrlist,
   transport_feedback *dummy, uid_t uid, gid_t gid, uschar **errmsg)
@@ -231,6 +234,9 @@ dummy = dummy;
 uid = uid;
 gid = gid;
 
+/* we can't wait until we're not privileged anymore */
+open_logs();
+
 if (ob->expand_maildir_use_size_file)
        ob->maildir_use_size_file = expand_check_condition(ob->expand_maildir_use_size_file,
                US"`maildir_use_size_file` in transport", tblock->name);
@@ -1287,8 +1293,8 @@ if (!(path = expand_string(fdname)))
   goto ret_panic;
   }
 { uschar *m;
-if (m = is_tainted2(path, 0, "Tainted '%s' (file or directory "
-          "name for %s transport) not permitted", path, tblock->name))
+if ((m = is_tainted2(path, 0, "Tainted '%s' (file or directory "
+          "name for %s transport) not permitted", path, tblock->name)))
   {
   addr->message = m;
   goto ret_panic;