From: Chet Ramey Date: Thu, 6 Feb 2020 18:51:58 +0000 (-0500) Subject: commit readline-20200206 snapshot X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fca4764090b80489208fac28968bee85a43ba18c;p=thirdparty%2Freadline.git commit readline-20200206 snapshot --- 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;