From 1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 18 Dec 2000 03:57:16 +0000 Subject: Change calls to error_msg.* and strerror to use perror_msg.*. --- findutils/grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'findutils') diff --git a/findutils/grep.c b/findutils/grep.c index 9014443b1..83336613e 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -169,7 +169,7 @@ extern int grep_main(int argc, char **argv) file = fopen(cur_file, "r"); if (file == NULL) { if (!suppress_err_msgs) - error_msg("%s: %s\n", cur_file, strerror(errno)); + perror_msg("%s", cur_file); } else { grep_file(file); -- cgit v1.2.3