problems restoring the history file are not signaled correctly to the calling application
[deliverable/binutils-gdb.git] / readline / readline / histfile.c
index 6c3adc9bd8d5e441f095c19eeeef9bef0a2ec46c..8eb3496687577213966c55f83d2540ca49dc1f14 100644 (file)
@@ -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;
This page took 0.024707 seconds and 4 git commands to generate.