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

File permission changes on commit

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 11 Nov 2013 13:40:01 +0000

I'm looking at r1540417 nominated for backport to 1.8. The fix allows
me to remove group/world read and/or read/write access and not have it
restored by commit even when my umask allows it:

$ ls -l wc/f
-rw-r--r-- 1 pm pm 2 Nov 11 13:10 wc/f
$ chmod go-r wc/f
$ ls -l wc/f
-rw------- 1 pm pm 2 Nov 11 13:10 wc/f
$ echo xx >> wc/f
$ svn ci -mm wc
$ ls -l wc/f
-rw------- 1 pm pm 2 Nov 11 13:10 wc/f

There is similar code affecting the execute bit but the behaviour is a
bit different. If I remove both read and execute then commit doesn't
restore execute but if I just remove execute it gets restored:

$ ls -l wc/f
-rwxr-xr-x 1 pm pm 2 Nov 11 13:13 wc/f
$ chmod go-x wc/f
$ ls -l wc/f
-rwxr--r-- 1 pm pm 2 Nov 11 13:13 wc/f
$ echo xx >> wc/f
$ svn ci -mm wc
$ ls -l wc/f
-rwxr-xr-x 1 pm pm 2 Nov 11 13:13 wc/f

I'm not sure what behaviour we are trying to implement, is restoring
execute a bug?

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2013-11-11 14:40:48 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.