[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: John Peacock <john.peacock_at_havurah-software.org>
Date: 2007-12-06 21:28:15 CET

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).

John

---------------------------------------------------------------------
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:28:52 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.