Mention when we run fakeroot.
[rsync/rsync.git] / testsuite / chown.test
index 755ffdf..90af529 100644 (file)
 
 set -x
 
+case `id -u` in
+'') ;; # If "id" failed, try to continue...
+0)  ;;
+*)  if [ -f /usr/bin/fakeroot ]; then
+       echo "Let's try re-running the script under fakeroot..."
+       exec /usr/bin/fakeroot /bin/sh "$0"
+    fi
+    ;;
+esac
+
 # Build some hardlinks
 
 mkdir "$fromdir"