]>
Commit | Line | Data |
---|---|---|
eafdeb9c JB |
1 | --- lynx2-8-6/WWW/Library/Implementation/HTFile.c.orig 2006-05-30 00:44:54.000000000 +0200 |
2 | +++ lynx2-8-6/WWW/Library/Implementation/HTFile.c 2007-02-25 21:40:38.930317847 +0100 | |
3 | @@ -2752,9 +2752,16 @@ | |
4 | #endif | |
5 | if (HTStat(localname, &dir_info) == -1) /* get file information */ | |
78f1250f | 6 | { |
eafdeb9c | 7 | - /* if can't read file information */ |
78f1250f | 8 | + char *tmp_localname = (char *)malloc(strlen(localname) + 4); |
9 | CTRACE((tfp, "HTLoadFile: can't stat %s\n", localname)); | |
10 | ||
11 | + if (tmp_localname) { | |
12 | + stpcpy( stpcpy( tmp_localname, localname), ".gz" ); | |
13 | + FREE(localname); | |
14 | + localname = tmp_localname; | |
15 | + } | |
16 | + /* if can't read file information */ | |
78f1250f | 17 | + |
eafdeb9c | 18 | } else { /* Stat was OK */ |
78f1250f | 19 | |
20 | if (S_ISDIR(dir_info.st_mode)) { |