X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f328e0f3a8a1d4726b0d3315838c6a109d579acb..648859bda2ecf1ed112277b05adc1430c72747c1:/testsuite/chown.test diff --git a/testsuite/chown.test b/testsuite/chown.test index 755ffdf8..8f3a3e08 100644 --- a/testsuite/chown.test +++ b/testsuite/chown.test @@ -15,6 +15,15 @@ set -x +case `id -u` in +'') ;; # If "id" failed, try to continue... +0) ;; +*) if [ -f /usr/bin/fakeroot ]; then + exec /usr/bin/fakeroot /bin/sh "$0" + fi + ;; +esac + # Build some hardlinks mkdir "$fromdir"