Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94894 - Wrapper for subversion umask
Summary: Wrapper for subversion umask
Status: RESOLVED DUPLICATE of bug 48809
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-03 01:02 UTC by Jose Gonzalez Gomez
Modified: 2005-06-03 12:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***