[TYPO3-core] RFC: protect localconf.php from being lost

Martin Kutschker Martin.Kutschker at blackbox.net
Fri Dec 16 16:08:30 CET 2005


Martin Kutschker writes on 
Fri, 16 Dec 2005 11:08:08 +0100 (MET):

> Hi!
> 
> This is a patch request.
> 
> Branch: HEAD / 3.8.2 ?
> 
> Problem:
> 
> localconf.php may be destroyed if something is wrong when it's
> updated. Especially it may be lost if the server runs out of
> diskspace.
> 
> Solution:
> 
> Write the new config to a temp. file. Check if this has been written
> properly and replace the old file.


New patch that has .php as file extension and deletes the temp file after an unseccssful write.

Note: the temp file is not deleted when the rename() fails. Just to make sure that at least on of those files survive.

Masi 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1804 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051216/315a3439/attachment.bin 


More information about the TYPO3-team-core mailing list