From fca4764090b80489208fac28968bee85a43ba18c Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Thu, 6 Feb 2020 13:51:58 -0500 Subject: [PATCH] commit readline-20200206 snapshot --- histfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/histfile.c b/histfile.c index 6e13b84..a38d395 100644 --- a/histfile.c +++ b/histfile.c @@ -640,6 +640,7 @@ history_truncate_file (const char *fname, int lines) if (rv != 0) { + rv = errno; if (tempname) unlink (tempname); history_lines_written_to_file = 0; @@ -787,6 +788,7 @@ mmap_error: if (rv != 0) { + rv = errno; if (tempname) unlink (tempname); history_lines_written_to_file = 0; -- 2.47.3