Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 94894

Summary: Wrapper for subversion umask
Product: Gentoo Linux Reporter: Jose Gonzalez Gomez <jgonzalez.openinput>
Component: New packagesAssignee: Paul de Vrieze (RETIRED) <pauldv>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jose Gonzalez Gomez 2005-06-03 01:02:12 UTC
The default behavior for subversion tools used through an ssh connection
(svn+ssh://) is to create or update files in the repository using the umask set
for the user. This is undesirable, as this may imply permission problems and
corrupted repositories. Setting umask at user level would be cumbersome and
inappropiate.

It would be desirable to create wrapper scripts to set the desired umask only
when running subversion tools. This would be probably something like the following:

#!/bin/sh
# Generic wrapper for svn commands to enforce correct umask
umask 002
cmdname=`basename $0`
exec /usr/bin/$cmdname "$@"

Then you could create links to this wrapper script:

ln -s svnwrap svn
ln -s svnwrap svnlook
ln -s svnwrap svnadmin
ln -s svnwrap svnserve

Do you think this could be included in the subversion ebuild? If so I could
provide a patch.

Thanks in advance

Reproducible: Always
Steps to Reproduce:
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2005-06-03 12:48:05 UTC

*** This bug has been marked as a duplicate of 48809 ***