*: use fopen_or_warn in few more places

This commit is contained in:
Denis Vlasenko
2008-03-20 21:19:35 +00:00
parent 275b929e01
commit f90ab183d6
4 changed files with 4 additions and 6 deletions

View File

@ -477,8 +477,7 @@ static void load_fs_info(const char *filename)
int old_fstab = 1;
struct fs_info *fs;
if ((f = fopen(filename, "r")) == NULL) {
bb_perror_msg("WARNING: cannot open %s", filename);
if ((f = fopen_or_warn(filename, "r")) == NULL) {
return;
}
while (!feof(f)) {