diff options
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 8c35450f8..beb1d6fcb 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -316,7 +316,7 @@ static void parse_config_file(void) | |||
316 | || !S_ISREG(st.st_mode) /* Not a regular file? */ | 316 | || !S_ISREG(st.st_mode) /* Not a regular file? */ |
317 | || (st.st_uid != 0) /* Not owned by root? */ | 317 | || (st.st_uid != 0) /* Not owned by root? */ |
318 | || (st.st_mode & (S_IWGRP | S_IWOTH)) /* Writable by non-root? */ | 318 | || (st.st_mode & (S_IWGRP | S_IWOTH)) /* Writable by non-root? */ |
319 | || !(f = fopen(config_file, "r")) /* Cannot open? */ | 319 | || !(f = fopen_for_read(config_file)) /* Cannot open? */ |
320 | ) { | 320 | ) { |
321 | return; | 321 | return; |
322 | } | 322 | } |