+ if (lp_read_only(i))
+ read_only = 1;
+
+ if (lp_transfer_logging(i)) {
+ if (strstr(lp_log_format(i), "%i") != NULL)
+ daemon_log_format_has_i = 1;
+ if (daemon_log_format_has_i
+ || strstr(lp_log_format(i), "%o") != NULL)
+ daemon_log_format_has_o_or_i = 1;
+ }
+