diff options
author | Denis Vlasenko | 2008-01-24 01:30:36 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-01-24 01:30:36 +0000 |
commit | 8e8200a772c2cc8a07327f1b6161b671e97b5017 (patch) | |
tree | aa52e7692e647d4c65282011fbc3205ed26a765f /findutils | |
parent | 46ef46aefb800e3865276b99caf88b6c309a841f (diff) | |
download | busybox-8e8200a772c2cc8a07327f1b6161b671e97b5017.zip busybox-8e8200a772c2cc8a07327f1b6161b671e97b5017.tar.gz |
grep: fix wrong filename in error message
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index c2a6a21..4c9582e 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 FILE *file = fopen(filename, "r"); if (file == NULL) { if (!SUPPRESS_ERR_MSGS) - bb_simple_perror_msg(cur_file); + bb_simple_perror_msg(filename); open_errors = 1; return 0; } |