summaryrefslogtreecommitdiff
path: root/testsuite/chown.test
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/chown.test')
-rw-r--r--testsuite/chown.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/chown.test b/testsuite/chown.test
index d238a8fe..6f73a709 100644
--- a/testsuite/chown.test
+++ b/testsuite/chown.test
@@ -40,9 +40,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 "$0"
+ exec "$FAKEROOT_PATH" "$SHELL_PATH" "$0"
fi
;;
esac