summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db-functions7
1 files changed, 6 insertions, 1 deletions
diff --git a/db-functions b/db-functions
index b9d0d2f..b3a4293 100644
--- a/db-functions
+++ b/db-functions
@@ -17,6 +17,11 @@ restore_umask () {
# set up general environment
WORKDIR=$(mktemp -d "${TMPDIR}/${0##*/}.XXXXXXXXXX")
+if [ -n "${SVNUSER}" ]; then
+ setfacl -m u:"${SVNUSER}":rwx "${WORKDIR}"
+ setfacl -m d:u:"${USER}":rwx "${WORKDIR}"
+ setfacl -m d:u:"${SVNUSER}":rwx "${WORKDIR}"
+fi
LOCKS=()
# check if messages are to be printed using color
@@ -509,6 +514,6 @@ arch_svn() {
if [ -z "${SVNUSER}" ]; then
/usr/bin/svn "${@}"
else
- sudo -u "${SVNUSER}" -- /usr/bin/svn "${@}"
+ sudo -u "${SVNUSER}" -- /usr/bin/svn --username "${USER}" "${@}"
fi
}