]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Make `-c' and `-O' work together.
[wget] / src / main.c
index 1f5a88aabfddda521251fa24c02c4696d935034a..34277c4771405ce94ef622ba3084418bd644319e 100644 (file)
@@ -752,7 +752,7 @@ Can't timestamp and not clobber old files at the same time.\n"));
       else
        {
          struct stat st;
-         opt.dfp = fopen (opt.output_document, "wb");
+         opt.dfp = fopen (opt.output_document, opt.always_rest ? "ab" : "wb");
          if (opt.dfp == NULL)
            {
              perror (opt.output_document);