diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-27 15:35:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-09-27 15:35:10 +0200 |
commit | 9371043698933452bb69566f279a6e40af961c8c (patch) | |
tree | 48297fb38a1e17cd91445aa058d0a4bdce111ce8 /coreutils | |
parent | 225cc1327a9a3786d0c5317ea1a8342f8c04f0d8 (diff) | |
download | busybox-w32-9371043698933452bb69566f279a6e40af961c8c.tar.gz busybox-w32-9371043698933452bb69566f279a6e40af961c8c.tar.bz2 busybox-w32-9371043698933452bb69566f279a6e40af961c8c.zip |
fix unsafe bb_perror_msg(filename) calls
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
442 | : getfilecon(filename, &scontext) | 442 | : getfilecon(filename, &scontext) |
443 | ) < 0 | 443 | ) < 0 |
444 | ) { | 444 | ) { |
445 | bb_perror_msg(filename); | 445 | bb_simple_perror_msg(filename); |
446 | return 0; | 446 | return 0; |
447 | } | 447 | } |
448 | } | 448 | } |
@@ -555,7 +555,7 @@ static bool do_stat(const char *filename, const char *format) | |||
555 | : getfilecon(filename, &scontext) | 555 | : getfilecon(filename, &scontext) |
556 | ) < 0 | 556 | ) < 0 |
557 | ) { | 557 | ) { |
558 | bb_perror_msg(filename); | 558 | bb_simple_perror_msg(filename); |
559 | return 0; | 559 | return 0; |
560 | } | 560 | } |
561 | } | 561 | } |