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

svn lock ends with an error E000001: Can't set permissions on '..../test.svn/db': Operation not permitted

From: Pawel Sikora <pluto_at_pld-linux.org>
Date: Thu, 15 Dec 2011 15:02:31 +0100

Hi,

after upgrading to 1.7.x i've noticed some bug in svn lock machinery.
here's a reduced testcase with local repo.

1). create from root a repo and change owner/mod to svnadmin.svnusers.

# svnadmin create test.svn
# chown -R svnadmin.svnusers test.svn
# chmod g+ws test.svn/db -R

2). from user that belongs to svnusers group try to do this:

$ svn co file://<$fullpath>/test.svn test.wc
Checked out revision 0.
$ cd test.wc
$ touch file
$ svn add file
A file
$ svn ci file -m 'dropin'
Adding file
Transmitting file data .
Committed revision 1.
$ svn lock file
svn: E000001: Can't set permissions on '/home/users/pawels/bugs/test.svn/db'
svn: E000001: Can't set permissions on '/home/users/pawels/bugs/test.svn/db': Operation not permitted

the strace shows that svn tries to chmod() on db directory.

(...)
chmod("/home/users/pawels/bugs/test.svn/db", 02755) = -1 EPERM (Operation not permitted)
(...)
Received on 2011-12-15 15:47:27 CET

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.