Bug#787079: Fwd: [rt.cpan.org #114140] WriteConfig nullifies the file in case of no space left on disk

Florian Schlichting fsfs at debian.org
Tue May 3 19:34:06 UTC 2016


----- Forwarded message from Shlomi Fish via RT <bug-Config-IniFiles at rt.cpan.org> -----

<URL: https://rt.cpan.org/Ticket/Display.html?id=114140 >

On Mon May 02 17:33:16 2016, fschlich wrote:
> Hi,
> 
> I'm forwarding Debian bug https://bugs.debian.org/cgi-
> bin/bugreport.cgi?bug=787079:
> 
> "In our work environment we noticed that the WriteConfig method
> doesn't check at all whether it is able to write the config data to
> the file and renames the temporary file afterwards unconditionally.
> This results in empty files in case the harddisk doesn't has free
> space and thus means data loss.
> 
> It would be good to have that fixed me thinks. :)"

This is hopefully fixed in version 2.89 which checks if a print to the file fails.

Please let me know if this is the case.

Note however that I feel that if your hard disk runs out of free space, then Config-IniFiles failing would be the least of your worries . Make sure it doesn't happen, mmmkay?!

----- End forwarded message -----



More information about the pkg-perl-maintainers mailing list