diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2018-01-20 15:27:34 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2018-01-21 01:33:40 +0000 |
commit | b592dac63b39fba505525b0cee1d914182e825ff (patch) | |
tree | dfaf56e6efe39cbf865b4d550c3aea92f293c5bf | |
parent | Update ChangeLog (diff) | |
download | w3m-b592dac63b39fba505525b0cee1d914182e825ff.tar.gz w3m-b592dac63b39fba505525b0cee1d914182e825ff.zip |
Suppress error messages when ~/.w3m is unwritable
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871425
Diffstat (limited to '')
-rw-r--r-- | rc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1279,7 +1279,7 @@ init_rc(void) if (stat(rc_dir, &st) < 0) { if (errno == ENOENT) { /* no directory */ if (do_mkdir(rc_dir, 0700) < 0) { - fprintf(stderr, "Can't create config directory (%s)!", rc_dir); + /* fprintf(stderr, "Can't create config directory (%s)!\n", rc_dir); */ goto rc_dir_err; } else { @@ -1287,17 +1287,17 @@ init_rc(void) } } else { - fprintf(stderr, "Can't open config directory (%s)!", rc_dir); + /* fprintf(stderr, "Can't open config directory (%s)!\n", rc_dir); */ goto rc_dir_err; } } if (!S_ISDIR(st.st_mode)) { /* not a directory */ - fprintf(stderr, "%s is not a directory!", rc_dir); + /* fprintf(stderr, "%s is not a directory!\n", rc_dir); */ goto rc_dir_err; } if (!(st.st_mode & S_IWUSR)) { - fprintf(stderr, "%s is not writable!", rc_dir); + /* fprintf(stderr, "%s is not writable!\n", rc_dir); */ goto rc_dir_err; } no_rc_dir = FALSE; |