From 9371043698933452bb69566f279a6e40af961c8c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 27 Sep 2012 15:35:10 +0200 Subject: fix unsafe bb_perror_msg(filename) calls Signed-off-by: Denys Vlasenko --- coreutils/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils') diff --git a/coreutils/stat.c b/coreutils/stat.c index 3fb212f0f..e38c8f6b0 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -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; } } -- cgit v1.2.3