]> sjero.net Git - wget/blobdiff - src/utils.c
Don't want to close log if an explicit -o was given. Let reopen to /dev/null handle...
[wget] / src / utils.c
index 4d0560ee38771da9f31f2df67c2df884f1bee778..7aac94fdbee79f2937682879ab542d97ffcd122c 100644 (file)
@@ -301,14 +301,7 @@ fork_to_background (void)
   /* Whether we arrange our own version of opt.lfilename here.  */
   bool logfile_changed = false;
 
-  if (opt.quiet && !opt.server_response)
-    {
-      /* Don't bother with a logfile, there are virtually no logs we
-         issue in quiet mode. (Server responses in FTP are the
-         exception, when enabled.) */
-      log_close ();
-    }
-  if (!opt.lfilename)
+  if (!opt.lfilename && (!opt.quiet || opt.server_response))
     {
       /* We must create the file immediately to avoid either a race
          condition (which arises from using unique_name and failing to