]> sjero.net Git - wget/blobdiff - src/utils.c
Accept always the file if it is the specified output destination.
[wget] / src / utils.c
index 352cdb7b5afc14f02b5f40c7dc85f95d502af5b0..a43671057085906ef2520cad78c2d58395edc170 100644 (file)
@@ -875,6 +875,9 @@ acceptable (const char *s)
 {
   int l = strlen (s);
 
+  if (opt.output_document && strcmp (s, opt.output_document) == 0)
+    return true;
+
   while (l && s[l] != '/')
     --l;
   if (s[l] == '/')