tags 396964 patch stop Here's a possible patch to stop lynx opening .mailcap and .mime.types files in its current directory.
-- tp
diff -ru lynx-2.8.5/src/HTInit.c lynx-2.8.5-new/src/HTInit.c --- lynx-2.8.5/src/HTInit.c 2004-01-08 12:03:09.000000000 +1000 +++ lynx-2.8.5-new/src/HTInit.c 2006-11-05 19:20:20.000000000 +1000 @@ -157,10 +157,7 @@ /* * Load the local maps. */ - if (LYCanReadFile(personal_type_map)) { - /* These should override everything else. */ - HTLoadTypesConfigFile(personal_type_map); - } else { + { char buffer[LY_MAXPATH]; LYAddPathToHome(buffer, sizeof(buffer), personal_type_map); HTLoadTypesConfigFile(buffer); @@ -1050,10 +1047,7 @@ /* These should override the default extensions as necessary. */ HTLoadExtensionsConfigFile(global_extension_map); - if (LYCanReadFile(personal_extension_map)) { - /* These should override everything else. */ - HTLoadExtensionsConfigFile(personal_extension_map); - } else { + { char buffer[LY_MAXPATH]; LYAddPathToHome(buffer, sizeof(buffer), personal_extension_map); /* These should override everything else. */
signature.asc
Description: OpenPGP digital signature