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
d96d3893
Commit
d96d3893
authored
Mar 15, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to handle 'test -L' on Sun.
parent
b73b51a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
rsync.fns
testsuite/rsync.fns
+5
-0
symlink-ignore.test
testsuite/symlink-ignore.test
+3
-3
No files found.
testsuite/rsync.fns
View file @
d96d3893
...
@@ -241,5 +241,10 @@ test_xfail() {
...
@@ -241,5 +241,10 @@ test_xfail() {
exit
78
exit
78
}
}
# Test whether something is a link, allowing for shell peculiarities
is_a_link
()
{
test
-L
"
$1
"
||
test
-h
"
$1
"
||
/usr/bin/test
-L
"
$1
"
||
/usr/bin/test
-h
"
$1
"
}
# be reproducible
# be reproducible
umask
077
umask
077
\ No newline at end of file
testsuite/symlink-ignore.test
View file @
d96d3893
...
@@ -20,17 +20,17 @@ build_symlinks || test_fail "failed to build symlinks"
...
@@ -20,17 +20,17 @@ build_symlinks || test_fail "failed to build symlinks"
[
-
f
"${todir}/referent"
]
||
test_fail
"referent was not copied"
[
-
f
"${todir}/referent"
]
||
test_fail
"referent was not copied"
[
-
d
"${todir}/from"
]
&&
test_fail
"extra level of directories"
[
-
d
"${todir}/from"
]
&&
test_fail
"extra level of directories"
if
[
-
L
"${todir}/dangling"
]
if
is_a_link
"${todir}/dangling"
then
then
test_fail
"dangling symlink was copied"
test_fail
"dangling symlink was copied"
fi
fi
if
[
-
L
"${todir}/relative"
]
if
is_a_link
"${todir}/relative"
then
then
test_fail
"relative symlink was copied"
test_fail
"relative symlink was copied"
fi
fi
if
[
-
L
"${todir}/absolute"
]
if
is_a_link
"${todir}/absolute"
then
then
test_fail
"absolute symlink was copied"
test_fail
"absolute symlink was copied"
fi
fi
...
...
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