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

Re: subversion changes file permissions on commit

From: Attila Nagy <bra_at_fsn.hu>
Date: Mon, 21 Oct 2013 18:16:00 +0200

On 10/15/2013 08:09 AM, Attila Nagy wrote:
>
> I store OS images in svn, so I need to record file permissions and
> ownership. For this, I use properties.
> But svn changes real file permissions:
OK, long story short. Isn't this a security issue?

$ ls -li zzz
4262518 -rw------- 1 bra bra 0 Oct 21 18:06 zzz
$ svn add zzz
A zzz
$ ls -li zzz
4262518 -rw------- 1 bra bra 0 Oct 21 18:06 zzz
$ svn commit -m tst zzz
Adding zzz
Transmitting file data .
Committed revision 30074.
$ ls -li zzz
4262518 -rw-r--r-- 1 bra bra 0 Oct 21 18:06 zzz
$ svn --version
svn, version 1.8.3 (r1516576)
    compiled Oct 20 2013, 10:32:56 on amd64-portbld-freebsd9.2

The file is the same, it's not recreated, so "svn doesn't handles
permissions, so it uses your umask to create files" doesn't stand here.
svn does handle permissions. :(

Why svn does this?
Because it doesn't preserve file permissions on updates, so it chmods
the files to umask bits on commit?
Received on 2013-10-21 18:16:49 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.