bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install-info can "corrupt" dir file if interrupted.


From: Eli Zaretskii
Subject: Re: install-info can "corrupt" dir file if interrupted.
Date: Sat, 03 Dec 2022 19:52:46 +0200

> From: Gavin Smith <gavinsmith0123@gmail.com>
> Date: Sat, 3 Dec 2022 15:25:20 +0000
> Cc: Texinfo <bug-texinfo@gnu.org>
> 
> The report was dir file corruption if install-info was interrupted.
> 
> I've attempted to fix this issue by creating a temporary file with
> mkstemp, and then renaming it.  I've added the Gnulib module for mkstemp
> as it will not exist on MS-Windows.

The rename operation is not atomic on MS-Windows, only on Posix systems.

Moreover, the MS runtime implements 'rename' in a way that fails if the
destination exists.  So you will need the Gnulib replacement for it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]