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

Re: why does Subversion change file permission

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2007-12-06 21:36:54 CET

On 2007-12-06 15:28:15 -0500, John Peacock wrote:
> Vincent Lefevre wrote:
>> OK, but I suppose that there are several ways to replace a file.
>> For instance, if one does "echo foo > bar" in a shell while bar was
>> already existing, then the permissions of bar are not changed.
>
> Except that is not a terribly safe operation. Much better to rename the
> old file (if it is open under some process, it will still have an open
> filenhandle), create the new file under a different name, then rename
> the new file with the original name (these are all atomic operations).

Thanks for the explanation. Now, I think that it would be a good idea
to "restore" the old permissions (possibly changing the x bit, only if
need be). Or is there anything against that?

-- 
Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 6 21:37:19 2007

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.