summaryrefslogtreecommitdiff
path: root/testsuite/acls.test
diff options
context:
space:
mode:
authorTizenOpenSource <tizenopensrc@samsung.com>2024-01-22 15:24:08 +0900
committerTizenOpenSource <tizenopensrc@samsung.com>2024-01-22 15:24:08 +0900
commit59527f05008633a5909a30a57aa2014cff553cc7 (patch)
treed9c334e83692851c02e3e1b8e65570c97bc82481 /testsuite/acls.test
parent6211adade47a2d94340d5c20dd737e8bdf246636 (diff)
downloadrsync-59527f05008633a5909a30a57aa2014cff553cc7.tar.gz
rsync-59527f05008633a5909a30a57aa2014cff553cc7.tar.bz2
rsync-59527f05008633a5909a30a57aa2014cff553cc7.zip
Imported Upstream version 3.2.7upstream/3.2.7upstream
Diffstat (limited to 'testsuite/acls.test')
-rw-r--r--testsuite/acls.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/acls.test b/testsuite/acls.test
index 5728cd57..693da667 100644
--- a/testsuite/acls.test
+++ b/testsuite/acls.test
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
# This program is distributable under the terms of the GNU GPL (see
# COPYING).
@@ -7,7 +7,7 @@
. $suitedir/rsync.fns
-$RSYNC --version | grep "[, ] ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
+$RSYNC -VV | grep '"ACLs": true' >/dev/null || test_skipped "Rsync is configured without ACL support"
makepath "$fromdir/foo"
echo something >"$fromdir/file1"
@@ -17,8 +17,8 @@ files='foo file1 file2'
case "$setfacl_nodef" in
true)
- if ! chmod --help 2>&1 | fgrep +a >/dev/null; then
- test_skipped "I don't know how to use setfacl or chmod for ACLs"
+ if ! chmod --help 2>&1 | grep -F +a >/dev/null; then
+ test_skipped "I don't know how to use setfacl or chmod for ACLs"
fi
chmod +a "root allow read,write,execute" "$fromdir/foo" || test_skipped "Your filesystem has ACLs disabled"
chmod +a "root allow read,execute" "$fromdir/file1"
@@ -27,7 +27,7 @@ true)
chmod +a "root allow read,execute" "$fromdir/file2"
see_acls() {
- ls -le "${@}"
+ ls -le "${@}"
}
;;
*)
@@ -45,7 +45,7 @@ true)
setfacl -m u:0:5 "$fromdir/file2"
see_acls() {
- getfacl "${@}"
+ getfacl "${@}"
}
;;
esac