]> git.pld-linux.org Git - packages/lynx.git/blob - lynx-gzip_fallback.patch
- added/changed non-english-man-pages URL
[packages/lynx.git] / lynx-gzip_fallback.patch
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.158558 seconds and 3 git commands to generate.