]> git.pld-linux.org Git - packages/lynx.git/blame - lynx-gzip_fallback.patch
remove CVE-2008-4690 patch dropped from spec in 8c36682
[packages/lynx.git] / lynx-gzip_fallback.patch
CommitLineData
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)) {
This page took 0.073005 seconds and 4 git commands to generate.