From c87daf6fdcaa116308663047c2e4fb8ff38011c7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 19 Nov 2016 01:06:01 -0800 Subject: [PATCH 02/10] grep: improve diagnostic on lseek failure * src/grep.c (reset): Mention the file name in the (unlikely) chance of an lseek failure. --- src/grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grep.c b/src/grep.c index 201b1d9..cafa0a2 100644 --- a/src/grep.c +++ b/src/grep.c @@ -861,7 +861,7 @@ reset (int fd, struct stat const *st) bufoffset = lseek (fd, 0, SEEK_CUR); if (bufoffset < 0) { - suppressible_error (_("lseek failed"), errno); + suppressible_error (filename, errno); return false; } } -- 2.7.4