version 1.1.1.1, 2012/02/17 15:09:30
|
version 1.1.1.2, 2013/10/14 07:51:15
|
Line 5
|
Line 5
|
|
|
# Test that rsync handles basic xattr preservation. |
# Test that rsync handles basic xattr preservation. |
|
|
. $srcdir/testsuite/rsync.fns | . $suitedir/rsync.fns |
lnkdir="$tmpdir/lnk" |
lnkdir="$tmpdir/lnk" |
|
|
$RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync is configured without xattr support" |
$RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync is configured without xattr support" |
|
|
case "`xattr 2>&1`" in | case "$HOST_OS" in |
*--list:*) | darwin*) |
xset() { |
xset() { |
xnam="$1" |
xnam="$1" |
xval="$2" |
xval="$2" |
Line 20 case "`xattr 2>&1`" in
|
Line 20 case "`xattr 2>&1`" in
|
} |
} |
xls() { |
xls() { |
xattr -l "${@}" | sed "s/^[ $tab_ch]*//" |
xattr -l "${@}" | sed "s/^[ $tab_ch]*//" |
|
} |
|
RSYNC_PREFIX='rsync' |
|
RUSR='rsync.nonuser' |
|
;; |
|
solaris*) |
|
xset() { |
|
xnam="$1" |
|
xval="$2" |
|
shift 2 |
|
for fn in "${@}"; do |
|
runat "$fn" "$SHELL_PATH" <<EOF |
|
echo "${xval}" > "${xnam}" |
|
EOF |
|
done |
|
} |
|
xls() { |
|
for fn in "${@}"; do |
|
runat "$fn" "$SHELL_PATH" <<EOF |
|
for x in *; do echo "\$x=\`cat \$x\`"; done |
|
EOF |
|
done |
} |
} |
RSYNC_PREFIX='rsync' |
RSYNC_PREFIX='rsync' |
RUSR='rsync.nonuser' |
RUSR='rsync.nonuser' |