problems restoring the history file are not signaled correctly to the calling application
This commit is contained in:
parent
c74251adf3
commit
f5fb419ff3
2 changed files with 3 additions and 1 deletions
|
@ -620,6 +620,7 @@ history_truncate_file (const char *fname, int lines)
|
||||||
|
|
||||||
if (rv != 0)
|
if (rv != 0)
|
||||||
{
|
{
|
||||||
|
rv = errno;
|
||||||
if (tempname)
|
if (tempname)
|
||||||
unlink (tempname);
|
unlink (tempname);
|
||||||
history_lines_written_to_file = 0;
|
history_lines_written_to_file = 0;
|
||||||
|
@ -767,6 +768,7 @@ mmap_error:
|
||||||
|
|
||||||
if (rv != 0)
|
if (rv != 0)
|
||||||
{
|
{
|
||||||
|
rv = errno;
|
||||||
if (tempname)
|
if (tempname)
|
||||||
unlink (tempname);
|
unlink (tempname);
|
||||||
history_lines_written_to_file = 0;
|
history_lines_written_to_file = 0;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Do not edit -- exists only for use by patch
|
# Do not edit -- exists only for use by patch
|
||||||
|
|
||||||
3
|
4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue