#!/bin/bash # Set to "clear" to clear the default ACLs. This should make the # problem go away. # # Set to "set" to set the default ACLs. This should cause the # problem to appear. SETACLS=clear #SETACLS=set rm -fr repos trunk tst cfg mkdir cfg R=file:///$(cygpath -ua .)/repos CFG="$(cygpath -ua cfg)" echo "R=$R" # Create the repository svnadmin create repos # Create the trunk svn mkdir --config-dir $CFG -m '' "$R/trunk" svn co --config-dir $CFG "$R/trunk" # Add an EXE and a TXT file cd trunk cp "$(cygpath -Wua)"/notepad notepad.xxx date > text.txt svn add --config-dir $CFG * svn ci --config-dir $CFG -m '' # Check out into another directory cd .. mkdir tst if [ -n "$SETACLS" ]; then for g in $(id -G); do if [ "$SETACLS" = "clear" ]; then setfacl -m d:g:$g:0 tst elif [ "$SETACLS" = "set" ]; then setfacl -m d:g:$g:rwx tst fi done fi getfacl tst svn co --config-dir $CFG "$R/trunk" tst cd tst ls -l