On Tue 15 Aug 2006 13:14, Ryan Schmidt wrote:
> On Aug 15, 2006, at 10:22, Hadmut Danisch wrote:
> > I tried to keep some confidential data in configuration files (secret
> > keys, passwords and things like that) kept in a SVN repository, but
> > found that svn modifies the file permissions when updating:
> >
> > % dir
> > total 8
> > -rw------- 1 danisch users 29 2006-08-15 10:12 x1
> > -rwx------ 1 danisch users 29 2006-08-15 10:12 x2*
> >
> > % svn update
> > U x1
> > U x2
> > Updated to revision 2.
> >
> > % dir
> > total 8
> > -rw-r----- 1 danisch users 58 2006-08-15 10:12 x1
> > -rwxr-x--- 1 danisch users 58 2006-08-15 10:12 x2*
> >
umask?
remember svn create a new temporary file, then renames it to the real name
when doing a checkout.
> >
> > Which is a pretty bad behavior. SVN should never change the permission
> > of existing files. It should either leave them as they are (problem:
> > what happens if a file is marked executable in the repository?) or
> > allow to specify permissions as properties.
Executable bits are set using an svn property.
> >
> > And if the file is unreadable, the copy in .svn should be as well.
> >
> >
> > I guess similar problems exist with ACLs and Windows permisssions.
>
> I'm not sure Subversion was designed for this case. It certainly does
> not attempt to remember file permissions. If you want that in
> Subversion, someone has made a branch that includes this
> functionality. You'd have to build it yourself. It's the owner-group-
> mode branch here:
>
> http://svn.collab.net/repos/svn/branches/meta-data-versioning/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
--
John Allen, mailto:john.allen@orbiscom.com
Orbiscom Ltd, http://www.orbiscom.com
Block 1,
Blackrock Business Park,
Carysfort Avenue,
Blackrock,
Co. Dublin,
Ireland.
Tel: +353-1-217.8603
Fax: +353-1-294.5119
Mobile: +353-085-1295486
Mandriva Linux release 2006.0 (Official) for i586, kernel 2.6.12-22mdk
10:10:30 up 4 days, 17:43, 1 user, load average: 0.00, 0.10, 0.21
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 16 11:13:46 2006