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?

Reply via email to