From d9be52c117c1185a8771ad1ce9e5a66ee85b092b Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Mon, 22 Dec 2014 14:01:50 +0100 Subject: [PATCH] Don't check for Dansguardian configuration file existence There is no need to check that the file exists before opening the file. If it doesn't exist, the error message will say so. --- dansguardian_log.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dansguardian_log.c b/dansguardian_log.c index 9dc60fc..627239e 100644 --- a/dansguardian_log.c +++ b/dansguardian_log.c @@ -52,11 +52,6 @@ void dansguardian_log(void) snprintf(guard_in,sizeof(guard_in),"%s/dansguardian.int_unsort",tmp); snprintf(guard_ou,sizeof(guard_ou),"%s/dansguardian.int_log",tmp); - if(access(DansGuardianConf, R_OK) != 0) { - debuga(_("Cannot open DansGuardian config file: %s\n"),DansGuardianConf); - exit(EXIT_FAILURE); - } - if((fp_guard=fopen(DansGuardianConf,"r"))==NULL) { debugapos("dansguardian",_("Cannot open file \"%s\": %s\n"),DansGuardianConf,strerror(errno)); exit(EXIT_FAILURE); -- 2.47.2