Re: [icedtea-web][rfc] Fix of backup of deployment.properties on some OSs

Jacob Wisor gitne at excite.co.jp
Tue May 7 08:50:54 PDT 2013


"Jacob Wisor"<gitne at excite.co.jp> wrote:
> Hello!
> 
> Some OSs (e.g. Windows) or file systems do not allow to overwrite while renaming or moving files. It could also depend on the implementation of java.io.File.renameTo(java.io.File), as its specification leaves open the exact semantics.
> 
> Although the proposed fix is not really elegant, it should work on the majority of systems. Maybe the whole idea of renaming deployment.properties to always have a safe backup is just redundant on modern operating and file systems, since most of them feature journaled or transactional file systems, so there should always be a safe copy having integrity available.
> 
> Happy reviewing!
> Jacob

Sorry, the webmailer keeps dropping attachements at random...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix of backup of deployment.properties on some OSs.patch
Type: text/x-patch
Size: 7335 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130508/9a809ea7/ISO-2022-JPBRml4IG9mIGJhY2t1cCBvZiBkZXBsb3ltZW50LnByb3BlcnRpZXMgb24gc29tZSBPU3MucGF0Y2g.patch 


More information about the distro-pkg-dev mailing list