Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
c50a9076
Commit
c50a9076
authored
Sep 29, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for OS X testing using chmod +a and ls.
parent
d417c516
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
16 deletions
+36
-16
acls.test
testsuite/acls.test
+36
-16
No files found.
testsuite/acls.test
View file @
c50a9076
...
...
@@ -9,34 +9,54 @@
$RSYNC
--
version
|
grep
", ACLs"
>/
dev
/
null
||
test_skipped
"Rsync is configured without ACL support"
case
"
$setfacl_nodef
"
in
true
)
test_skipped
"I don't know how to use your setfacl command"
;;
esac
makepath
"
$fromdir
/foo"
echo
something
>
"
$fromdir
/file1"
echo
else
>
"
$fromdir
/file2"
files
=
'foo file1 file2'
setfacl
-
m
u
:
0
:
7
"
$fromdir
/foo"
||
test_skipped
"Your filesystem has ACLs disabled"
setfacl
-
m
g
:
1
:
5
"
$fromdir
/foo"
setfacl
-
m
g
:
2
:
1
"
$fromdir
/foo"
setfacl
-
m
g
:
0
:
7
"
$fromdir
/foo"
setfacl
-
m
u
:
2
:
1
"
$fromdir
/foo"
setfacl
-
m
u
:
1
:
5
"
$fromdir
/foo"
setfacl
-
m
u
:
0
:
5
"
$fromdir
/file1"
setfacl
-
m
u
:
0
:
5
"
$fromdir
/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"
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"
chmod
+
a
"admin allow read"
"
$fromdir
/file1"
chmod
+
a
"daemon allow read,write"
"
$fromdir
/file1"
chmod
+
a
"root allow read,execute"
"
$fromdir
/file2"
see_acls
()
{
ls
-
le
"${@}"
}
;;
*
)
setfacl
-
m
u
:
0
:
7
"
$fromdir
/foo"
||
test_skipped
"Your filesystem has ACLs disabled"
setfacl
-
m
g
:
1
:
5
"
$fromdir
/foo"
setfacl
-
m
g
:
2
:
1
"
$fromdir
/foo"
setfacl
-
m
g
:
0
:
7
"
$fromdir
/foo"
setfacl
-
m
u
:
2
:
1
"
$fromdir
/foo"
setfacl
-
m
u
:
1
:
5
"
$fromdir
/foo"
setfacl
-
m
u
:
0
:
5
"
$fromdir
/file1"
setfacl
-
m
g
:
0
:
4
"
$fromdir
/file1"
setfacl
-
m
u
:
1
:
6
"
$fromdir
/file1"
setfacl
-
m
u
:
0
:
5
"
$fromdir
/file2"
see_acls
()
{
getfacl
"${@}"
}
;;
esac
cd
"
$fromdir
"
$RSYNC
-
avvA
$files
"
$todir
/"
getfacl
$files
>
"
$scratchdir
/acls.txt"
see_acls
$files
>
"
$scratchdir
/acls.txt"
cd
"
$todir
"
getfacl
$files
|
diff
$diffopt
"
$scratchdir
/acls.txt"
-
see_acls
$files
|
diff
$diffopt
"
$scratchdir
/acls.txt"
-
# The script would have aborted on error, so getting here means we've won.
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment