Diff for /embedaddon/rsync/testsuite/chmod-temp-dir.test between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/17 15:09:30 version 1.1.1.2, 2021/03/17 00:32:36
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
   
# Copyright (C) 2004 by Wayne Davison <wayned@samba.org># Copyright (C) 2004-2020 Wayne Davison
   
 # This program is distributable under the terms of the GNU GPL (see  # This program is distributable under the terms of the GNU GPL (see
 # COPYING).  # COPYING).
Line 13 Line 13
   
 hands_setup  hands_setup
   
 tmpdir2=$RSYNC_TEST_TMP  
 if [ x"$tmpdir2" = x ]; then  
     tmpdir2=/tmp  
 fi  
 sdev=`$TOOLDIR/getfsdev $scratchdir`  sdev=`$TOOLDIR/getfsdev $scratchdir`
tdev=`$TOOLDIR/getfsdev $tmpdir2`tdev=$sdev
if [ x$sdev = x$tdev ]; then
    tmpdir2=/var/tmpfor tmpdir2 in "${RSYNC_TEST_TMP:-/override-tmp-not-specified}" /run/shm /var/tmp /tmp; do
    if [ -d $tmpdir2 ]; then    [ -d "$tmpdir2" -a -w "$tmpdir2" ] || continue
        tdev=`$TOOLDIR/getfsdev $tmpdir2`    tdev=`$TOOLDIR/getfsdev "$tmpdir2"`
    else    [ x$sdev != x$tdev ] && break
        tdev="$sdev"done
    fi
    [ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system"[ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system"
fi 
   
 chmod 440 "$fromdir/text"  chmod 440 "$fromdir/text"
 chmod 500 "$fromdir/dir/text"  chmod 500 "$fromdir/dir/text"

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


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