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
0480a946
Commit
0480a946
authored
Sep 23, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more testing based on Matt's recent patch.
parent
67f8a41b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
chmod-option.test
testsuite/chmod-option.test
+30
-0
No files found.
testsuite/chmod-option.test
View file @
0480a946
...
...
@@ -38,5 +38,35 @@ chmod +w "$checkdir" "$checkdir"/dir*
checkit
"
$RSYNC
-avv --chmod ug-s,a+rX,D+w
\"
$fromdir
/
\"
\"
$todir
/
\"
"
"
$checkdir
"
"
$todir
"
rm
-
r
"
$fromdir
"
"
$checkdir
"
"
$todir
"
makepath
"
$todir
"
makepath
"
$fromdir
/foo"
touch
"
$fromdir
/bar"
checkit
"
$RSYNC
-avv
\"
$fromdir
/
\"
\"
$checkdir
/
\"
"
"
$fromdir
"
"
$checkdir
"
chmod
+
t
"
$checkdir
"
/
bar
checkit
"
$RSYNC
-avv --chmod=F+t
\"
$fromdir
/
\"
\"
$todir
/
\"
"
"
$checkdir
"
"
$todir
"
# Tickle a bug in rsync 2.6.8: if you push a new directory with --perms off to
# a daemon with an incoming chmod, the daemon pretends the directory is a file
# for the purposes of the second application of the incoming chmod.
build_rsyncd_conf
cat
>>
"
$scratchdir
/test-rsyncd.conf"
<<
EOF
[
test
-
incoming
-
chmod
]
path
=
$todir
read
only
=
no
incoming
chmod
=
F
+
t
EOF
RSYNC_CONNECT_PROG
=
"
$RSYNC
--config=
$conf
--daemon"
export
RSYNC_CONNECT_PROG
rm
-
r
"
$todir
"
makepath
"
$todir
"
checkit
"
$RSYNC
-rtvv
\"
$fromdir
/
\"
localhost::test-incoming-chmod/"
"
$checkdir
"
"
$todir
"
# 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