Hi,

An svn update process doesn roughtly this :

open("tempfile.tmp", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0666)
<lots of magic>
write() tempfile.tml
rename("tempfile.tmp", "targetfile");

While this works, it has one problem : The rename recreated the file, and thus applies default permissions. While this is OK in most situations, it isn't in some. Does this have a specific reason, and is changing the behaviour to a truncate() and write() a good alternative ?


Regards,


    Igmar



Reply via email to