ViewVC modified rights of the subversion repository
From various reasons I ended up with some sophisticated rights settings for my subversion repository, the main idea is to grant access based on group. So I need that the files are created with proper group and with write right on the group.
For the command line ans svn+ssh access I created following files (based on some advice, which I found 4 years ago and did not notice a link):
/usr/local/bin/svn
#!/bin/sh umask 002 /usr/bin/svn.orig "$@"
/usr/local/bin/svnserver
#!/bin/sh
umask 002
/usr/bin/svnserve.orig “$@”
As big surprise you will find that the web interface modifies files in the subversion repository – it removes write permission on group. I have solved this by adding following line to viewvc.cgi:
--- viewvc.cgi.orig 2009-10-25 09:55:34.738716284 +0100 +++ viewvc.cgi 2009-10-25 09:51:14.914726062 +0100 @@ -58,4 +58,5 @@ server = sapi.CgiServer() cfg = viewvc.load_config(CONF_PATHNAME, server) +os.umask(0002) viewvc.main(server, cfg)
Categories: Missing Answers