Avoid -u option to id since solaris doesn't support it.
[rsync/rsync.git] / testsuite / chown.test
index 609ba92..e081d87 100644 (file)
@@ -17,7 +17,7 @@ case $0 in
 *fake*)
     $RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
     RSYNC="$RSYNC --fake-super"
-    TLS_ARGS=--fake-super
+    TLS_ARGS="$TLS_ARGS --fake-super"
     case "`xattr 2>&1`" in
     *--list:*)
        chown() {
@@ -36,7 +36,8 @@ case $0 in
     esac
     ;;
 *)
-    case `id -u` in
+    RSYNC="$RSYNC --super"
+    case `get_testuid` in
     '') ;; # If "id" failed, try to continue...
     0)  ;;
     *)  if [ -f /usr/bin/fakeroot ]; then