HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: problem with PRN ....
Author: Xavier Roche
Date: 12/15/2002 21:24
 
> I'm trying to mirror this site:
> <http://java.sun.com/products/jlf/at/book/>
> but there is a file called PRN.html
> Under Windows PRN is a device name, and the
> OS refuses to save the file to disk.

This is normally handled by httrack which automatically 
renamed the file into PRN_.html, but in this case a stupid 
bug prevent the protection from working properly. I'll fix 
that for 3.23 (patch below)


--- htsname.c.orig      Sun Dec 15 18:43:12 2002
+++ htsname.c   Sun Dec 15 18:49:17 2002
@@ -1081,9 +1081,11 @@
       char* a=save;
-      while((a=strstr(a,hts_tbdev[i]))) {
+      while((a=strstrcase(a,(char*)hts_tbdev[i]))) {
         switch ( (int) a[strlen(hts_tbdev[i])] ) {
         case '\0':
-        case '/':  {
+        case '/':
+        case '.':
+        {
           char tempo[HTS_URLMAXSIZE*2]; tempo[0]='\0';
           strncatbuff(tempo,save,(int) (a - save) + strlen
(hts_tbdev[i]));
-          strcatbuff(tempo,"-");
+          strcatbuff(tempo,"_");
           strcatbuff(tempo,a+strlen(hts_tbdev[i]));

 
Reply Create subthread


All articles

Subject Author Date
problem with PRN ....

12/15/2002 11:29
Re: problem with PRN ....

12/15/2002 21:24




5

Created with FORUM 2.0.11