← Commit list

8e8200a77

Denis Vlasenko
Denis Vlasenko
2008-01-24
FAILED Duration: 20s

Subject

grep: fix wrong filename in error message

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

findutils/grep.c+1 -1
@@ -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;
}