]> git.pld-linux.org Git - packages/lynx.git/blob - lynx-gzip_fallback.patch
remove CVE-2008-4690 patch dropped from spec in 8c36682
[packages/lynx.git] / lynx-gzip_fallback.patch
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 */
6         {
7 -           /* if can't read file information */
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 */
17 +
18         } else {                /* Stat was OK */
19  
20             if (S_ISDIR(dir_info.st_mode)) {
This page took 0.090581 seconds and 3 git commands to generate.