aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2020-02-07 14:58:55 -0500
committerTom Tromey <tom@tromey.com>2020-06-30 15:10:46 -0600
commitf5fb419ff3bc723f974b0538dce1c51a81c33484 (patch)
treea2f7cde43e2484866334726608962ef171156203 /readline
parentc74251adf3de3f0b248802a0aeb832f4e2471f1a (diff)
downloadgdb-f5fb419ff3bc723f974b0538dce1c51a81c33484.zip
gdb-f5fb419ff3bc723f974b0538dce1c51a81c33484.tar.gz
gdb-f5fb419ff3bc723f974b0538dce1c51a81c33484.tar.bz2
problems restoring the history file are not signaled correctly to the calling application
Diffstat (limited to 'readline')
-rw-r--r--readline/readline/histfile.c2
-rw-r--r--readline/readline/patchlevel2
2 files changed, 3 insertions, 1 deletions
diff --git a/readline/readline/histfile.c b/readline/readline/histfile.c
index 6c3adc9..8eb3496 100644
--- a/readline/readline/histfile.c
+++ b/readline/readline/histfile.c
@@ -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;
diff --git a/readline/readline/patchlevel b/readline/readline/patchlevel
index ce3e355..626a945 100644
--- a/readline/readline/patchlevel
+++ b/readline/readline/patchlevel
@@ -1,3 +1,3 @@
# Do not edit -- exists only for use by patch
-3
+4