aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/checkcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/checkcfg.c')
-rw-r--r--src/firejail/checkcfg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/firejail/checkcfg.c b/src/firejail/checkcfg.c
index d7690a4fc..f3ab0a6d8 100644
--- a/src/firejail/checkcfg.c
+++ b/src/firejail/checkcfg.c
@@ -134,8 +134,7 @@ int checkcfg(int val) {
134 *end = '\0'; 134 *end = '\0';
135 135
136 // is the file present? 136 // is the file present?
137 struct stat s; 137 if (access(fname, F_OK) == -1) {
138 if (stat(fname, &s) == -1) {
139 fprintf(stderr, "Error: netfilter-default file %s not available\n", fname); 138 fprintf(stderr, "Error: netfilter-default file %s not available\n", fname);
140 exit(1); 139 exit(1);
141 } 140 }