Diff for /embedaddon/rsync/testsuite/chown.test between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2013/10/14 07:51:15 version 1.1.1.3, 2021/03/17 00:32:36
Line 15 Line 15
   
 case $0 in  case $0 in
 *fake*)  *fake*)
    $RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"    $RSYNC --version | grep "[, ] xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
     RSYNC="$RSYNC --fake-super"      RSYNC="$RSYNC --fake-super"
     TLS_ARGS="$TLS_ARGS --fake-super"      TLS_ARGS="$TLS_ARGS --fake-super"
     case "$HOST_OS" in      case "$HOST_OS" in
Line 37  EOF Line 37  EOF
             done              done
         }          }
         ;;          ;;
       freebsd*)
           chown() {
               own=$1
               shift
               setextattr -h user "rsync.%stat" "100644 0,0 $own" "${@}"
           }
           ;;
     *)      *)
         chown() {          chown() {
             own=$1              own=$1
Line 48  EOF Line 55  EOF
     ;;      ;;
 *)  *)
     RSYNC="$RSYNC --super"      RSYNC="$RSYNC --super"
    case `get_testuid` in    my_uid=`get_testuid`
    '') ;; # If "id" failed, try to continue...    root_uid=`get_rootuid`
    0)  ;;    if test x"$my_uid" = x; then
    *)  if [ -e "$FAKEROOT_PATH" ]; then        : # If "id" failed, try to continue...
     elif test x"$my_uid" != x"$root_uid"; then
         if [ -e "$FAKEROOT_PATH" ]; then
             echo "Let's try re-running the script under fakeroot..."              echo "Let's try re-running the script under fakeroot..."
             exec "$FAKEROOT_PATH" "$SHELL_PATH" "$0"              exec "$FAKEROOT_PATH" "$SHELL_PATH" "$0"
         fi          fi
        ;;    fi
    esac 
     ;;      ;;
 esac  esac
   

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>