Tweaked some whitespace to match the latest version from autoconf.
[rsync/rsync.git] / testsuite / chown.test
index cd841fa..1be7d9e 100644 (file)
 
 . "$suitedir/rsync.fns"
 
+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"