]> git.pld-linux.org Git - packages/lynx.git/blame - lynx-gzip_fallback.patch
- -fomit-frame-pointer on ia32
[packages/lynx.git] / lynx-gzip_fallback.patch
CommitLineData
78f1250f 1--- lynx2-8-5/WWW/Library/Implementation/HTFile.c.orig Sun Jun 30 23:38:06 2002
2+++ lynx2-8-5/WWW/Library/Implementation/HTFile.c Sun Jun 30 23:46:16 2002
3@@ -2495,9 +2495,18 @@
4 */
5 if (HTStat(localname,&dir_info) == -1) /* get file information */
6 {
7- /* if can't read file information */
8+
9+ char *tmp_localname = (char *)malloc(strlen(localname) + 4);
10 CTRACE((tfp, "HTLoadFile: can't stat %s\n", localname));
11
12+ if (tmp_localname) {
13+ stpcpy( stpcpy( tmp_localname, localname), ".gz" );
14+ FREE(localname);
15+ localname = tmp_localname;
16+ }
17+ /* if can't read file information */
18+
19+
20 } else { /* Stat was OK */
21
22 if (S_ISDIR(dir_info.st_mode)) {
This page took 0.033314 seconds and 4 git commands to generate.