aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2018-01-20 15:27:34 +0000
committerTatsuya Kinoshita <tats@debian.org>2018-01-21 01:33:40 +0000
commitb592dac63b39fba505525b0cee1d914182e825ff (patch)
treedfaf56e6efe39cbf865b4d550c3aea92f293c5bf
parentUpdate ChangeLog (diff)
downloadw3m-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
-rw-r--r--rc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.c b/rc.c
index 2ec12b2..eb562c9 100644
--- a/rc.c
+++ b/rc.c
@@ -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;