aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-01-24 01:30:36 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-01-24 01:30:36 +0000
commit8e8200a772c2cc8a07327f1b6161b671e97b5017 (patch)
treeaa52e7692e647d4c65282011fbc3205ed26a765f
parent46ef46aefb800e3865276b99caf88b6c309a841f (diff)
downloadbusybox-w32-8e8200a772c2cc8a07327f1b6161b671e97b5017.tar.gz
busybox-w32-8e8200a772c2cc8a07327f1b6161b671e97b5017.tar.bz2
busybox-w32-8e8200a772c2cc8a07327f1b6161b671e97b5017.zip
grep: fix wrong filename in error message
-rw-r--r--findutils/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index c2a6a2187..4c9582e8c 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -376,7 +376,7 @@ static int file_action_grep(const char *filename, struct stat *statbuf, void* ma
376 FILE *file = fopen(filename, "r"); 376 FILE *file = fopen(filename, "r");
377 if (file == NULL) { 377 if (file == NULL) {
378 if (!SUPPRESS_ERR_MSGS) 378 if (!SUPPRESS_ERR_MSGS)
379 bb_simple_perror_msg(cur_file); 379 bb_simple_perror_msg(filename);
380 open_errors = 1; 380 open_errors = 1;
381 return 0; 381 return 0;
382 } 382 }