From b592dac63b39fba505525b0cee1d914182e825ff Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 21 Jan 2018 00:27:34 +0900 Subject: Suppress error messages when ~/.w3m is unwritable Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871425 --- rc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rc.c') 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; -- cgit v1.2.3