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
559e727b
Commit
559e727b
authored
Apr 05, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test more permutations.
parent
126642b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
12 deletions
+25
-12
unsafe-links.test
testsuite/unsafe-links.test
+25
-12
No files found.
testsuite/unsafe-links.test
View file @
559e727b
...
...
@@ -14,12 +14,6 @@ test_regular() {
fi
;
};
test_copy
()
{
test_symlink
to
/
links
/
file1
test_symlink
to
/
links
/
file2
test_regular
to
/
links
/
unsafefile
}
cd
"
$TMP
"
mkdir
from
...
...
@@ -38,21 +32,40 @@ ln -s ../files/file1 "from/safe/links/"
ln
-
s
../
files
/
file2
"from/safe/links/"
ln
-
s
../../
unsafe
/
unsafefile
"from/safe/links/"
#next rsync copy correctly
set
-
x
echo
"rsync with relative path"
;
echo
"rsync with relative path and just -a"
;
rsync
-
avv
from
/
safe
/
to
test_symlink
to
/
links
/
file1
test_symlink
to
/
links
/
file2
test_symlink
to
/
links
/
unsafefile
echo
"rsync with relative path and -a --copy-links"
rsync
-
avv
--
copy
-
links
from
/
safe
/
to
test_regular
to
/
links
/
file1
test_regular
to
/
links
/
file2
test_regular
to
/
links
/
unsafefile
#next rsync copy correctly
echo
"rsync with relative path and --copy-unsafe-links"
;
rsync
-
avv
--
copy
-
unsafe
-
links
from
/
safe
/
to
test_copy
;
test_symlink
to
/
links
/
file1
test_symlink
to
/
links
/
file2
test_regular
to
/
links
/
unsafefile
rm
-
rf
to
#next rsync copy
unco
rectly - links are copied as files not as links
#next rsync copy
incor
rectly - links are copied as files not as links
echo
"rsync with relative2 path"
;
(
cd
from
;
rsync
-
avv
--
copy
-
unsafe
-
links
safe
/
../
to
)
test_copy
;
test_symlink
to
/
links
/
file1
test_symlink
to
/
links
/
file2
test_regular
to
/
links
/
unsafefile
rm
-
rf
to
#next rsync copy uncorectly - all links are copied
echo
"rsync with absolute path"
;
rsync
-
avv
--
copy
-
unsafe
-
links
`pwd`
/
from
/
safe
/
to
test_copy
;
test_symlink
to
/
links
/
file1
test_symlink
to
/
links
/
file2
test_regular
to
/
links
/
unsafefile
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