[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn update and permissions

From: Igmar Palsenberg <igmar_at_palsenberg.com>
Date: Wed, 12 May 2010 11:35:23 +0200

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
Received on 2010-05-12 11:40:45 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.