diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:38:13 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:38:13 +0000 |
commit | ddd965984492e74c3e5fc0fb922d4362fd3aebda (patch) | |
tree | 1f554ce14b66a9b4c344d62948a473fb1d367262 /debian/patches/120_config-file-handling.patch | |
parent | Releasing debian version 0.5.2-7 (diff) | |
download | w3m-ddd965984492e74c3e5fc0fb922d4362fd3aebda.tar.gz w3m-ddd965984492e74c3e5fc0fb922d4362fd3aebda.zip |
Releasing debian version 0.5.2-8debian/0.5.2-8
Diffstat (limited to '')
-rw-r--r-- | debian/patches/120_config-file-handling.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/debian/patches/120_config-file-handling.patch b/debian/patches/120_config-file-handling.patch deleted file mode 100644 index ded2c85..0000000 --- a/debian/patches/120_config-file-handling.patch +++ /dev/null @@ -1,38 +0,0 @@ -Description: Fix segfault when changing options if ~/.w3m not accessible -Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366284#5 -Author: Karsten Schoelzel <kuser@gmx.de> -Bug-Debian: http://bugs.debian.org/366284 - -diff --git a/rc.c b/rc.c -index 17f30d8..b88a3fd 100644 ---- a/rc.c -+++ b/rc.c -@@ -1253,7 +1253,7 @@ init_rc(void) - interpret_rc(f); - fclose(f); - } -- if ((f = fopen(config_file, "rt")) != NULL) { -+ if (config_file && (f = fopen(config_file, "rt")) != NULL) { - interpret_rc(f); - fclose(f); - } -@@ -1265,6 +1265,8 @@ init_rc(void) - ((tmp_dir = getenv("TMP")) == NULL || *tmp_dir == '\0') && - ((tmp_dir = getenv("TEMP")) == NULL || *tmp_dir == '\0')) - tmp_dir = "/tmp"; -+ create_option_search_table(); -+ goto open_rc; - } - - -@@ -1446,8 +1448,8 @@ panel_set_option(struct parsed_tagarg *a - FILE *f = NULL; - char *p; - -- if (no_rc_dir) { -- disp_message("There's no ~/.w3m directory... config not saved", FALSE); -+ if (config_file == NULL) { -+ disp_message("There's no config file... config not saved", FALSE); - } - else { - f = fopen(config_file, "wt"); |