| > 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]));
| |