summaryrefslogtreecommitdiff
path: root/testsuite/devices.test
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-09-20 13:10:02 -0700
committerWayne Davison <wayned@samba.org>2011-09-20 13:17:42 -0700
commit439d5d89295a27ba57a11b17633601d8c5d7f8e6 (patch)
tree450406bc3fd0cc5329401a3bfa8df889aa1e55e0 /testsuite/devices.test
parentde219101ed2d1eca188c37f9a06b9764c4ca528e (diff)
downloadrsync-439d5d89295a27ba57a11b17633601d8c5d7f8e6.tar.gz
Better fakeroot support helps Solaris.
Diffstat (limited to 'testsuite/devices.test')
-rw-r--r--testsuite/devices.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/devices.test b/testsuite/devices.test
index a85954b1..1f6f068b 100644
--- a/testsuite/devices.test
+++ b/testsuite/devices.test
@@ -54,9 +54,9 @@ case $0 in
case `get_testuid` in
'') ;; # If "id" failed, try to continue...
0) ;;
- *) if [ -f /usr/bin/fakeroot ]; then
+ *) if [ -e "$FAKEROOT_PATH" ]; then
echo "Let's try re-running the script under fakeroot..."
- exec /usr/bin/fakeroot /bin/sh $RUNSHFLAGS "$0"
+ exec "$FAKEROOT_PATH" "$SHELL_PATH" $RUNSHFLAGS "$0"
fi
test_skipped "Rsync needs root/fakeroot for device tests"
;;