mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
problems restoring the history file are not signaled correctly to the calling application
This commit is contained in:
parent
c74251adf3
commit
f5fb419ff3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user