grep: fix wrong filename in error message

This commit is contained in:
Denis Vlasenko committed 2008-01-24 01:30:36 +00:00
1 parent 46ef46aefb
commit 8e8200a772
1 file changed
+1 -1
+1 -1
View File
@@ -376,7 +376,7 @@ static int file_action_grep(const char *filename, struct stat *statbuf, void* ma
FILE *file = fopen(filename, "r"); FILE *file = fopen(filename, "r");
if (file == NULL) { if (file == NULL) {
if (!SUPPRESS_ERR_MSGS) if (!SUPPRESS_ERR_MSGS)
bb_simple_perror_msg(cur_file); bb_simple_perror_msg(filename);
open_errors = 1; open_errors = 1;
return 0; return 0;
} }