diff options
author | Chet Ramey <chet.ramey@case.edu> | 2020-02-07 14:58:55 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2020-02-07 14:58:55 -0500 |
commit | c5ad6be530f5c1daf64a2d20df4baba9f6b57aa4 (patch) | |
tree | 6d9264bda0e05a16ffef8486fd45b7d7ca749d8c | |
parent | f5720c8cabbdb2387b4dc9e36633a73df6a634da (diff) | |
download | readline-c5ad6be530f5c1daf64a2d20df4baba9f6b57aa4.tar.gz |
problems restoring the history file are not signaled correctly to the calling application
-rw-r--r-- | histfile.c | 2 | ||||
-rw-r--r-- | patchlevel | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -620,6 +620,7 @@ history_truncate_file (const char *fname, int lines) if (rv != 0) { + rv = errno; if (tempname) unlink (tempname); history_lines_written_to_file = 0; @@ -767,6 +768,7 @@ mmap_error: if (rv != 0) { + rv = errno; if (tempname) unlink (tempname); history_lines_written_to_file = 0; @@ -1,3 +1,3 @@ # Do not edit -- exists only for use by patch -3 +4 |