| Fixed. See patch below (wil be merged next week)
--- /temp/httrack-3.29.33/src/htslib.c Sat Aug 9 17:21:37
2003
+++ new/htslib.c Sun Aug 10 11:42:09 2003
@@ -650,7 +650,7 @@
retour->msg[0]='\0';
soc=INVALID_SOCKET;
if (retour->totalsize<0)
- strcpybuff(retour->msg,"Unable to open file");
+ strcpybuff(retour->msg,"Unable to open local
file");
else if (retour->totalsize==0)
strcpybuff(retour->msg,"File empty");
else {
@@ -668,7 +668,7 @@
strcpybuff(retour->msg,"OK");
guess_httptype(retour->contenttype,fil);
} else if (strnotempty(retour->msg)==0)
- strcpybuff(retour->msg,"Unable to open file");
+ strcpybuff(retour->msg,"Unable to open local
file");
return soc; // renvoyer
} else { // HEAD ou POST : interdit sur un
local!!!! (c'est idiot!)
strcpybuff(retour->msg,"Unexpected Head/Post local
request");
@@ -2183,8 +2183,13 @@
char* a;
p=url+pos;
-
+ if (*p == '/' || *p == '\\') { /* file:///.. */
strcatbuff(fil,p); // fichier local ; adr="#"
+ } else {
+ strcatbuff(fil,"//"); /* <file://server/foo> */
+ strcatbuff(fil,p);
+ }
+
a=strchr(fil,'?');
if (a)
*a='\0'; /* couper query (inutile pour file://
lors de la requĂȘte) */
| |