fix unsafe bb_perror_msg(filename) calls

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2012-09-27 15:35:10 +02:00
parent 225cc1327a
commit 9371043698
2 changed files with 3 additions and 3 deletions

View File

@@ -442,7 +442,7 @@ static bool do_statfs(const char *filename, const char *format)
: getfilecon(filename, &scontext)
) < 0
) {
bb_perror_msg(filename);
bb_simple_perror_msg(filename);
return 0;
}
}
@@ -555,7 +555,7 @@ static bool do_stat(const char *filename, const char *format)
: getfilecon(filename, &scontext)
) < 0
) {
bb_perror_msg(filename);
bb_simple_perror_msg(filename);
return 0;
}
}