]> git.ipfire.org Git - thirdparty/readline.git/commitdiff
commit readline-20200206 snapshot
authorChet Ramey <chet.ramey@case.edu>
Thu, 6 Feb 2020 18:51:58 +0000 (13:51 -0500)
committerChet Ramey <chet.ramey@case.edu>
Thu, 6 Feb 2020 18:51:58 +0000 (13:51 -0500)
histfile.c

index 6e13b8423589efa2b618ab8cf5f252239123b944..a38d3952dce352839f0ad4f8a2fb8eed911f0b53 100644 (file)
@@ -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;