You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Igmar Palsenberg <ig...@palsenberg.com> on 2010/05/12 09:35:23 UTC

svn update and permissions

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