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
d25c0e42
Commit
d25c0e42
authored
Apr 08, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A test suite that calls unsafe_symlink() directly to see how it
handles different strings.
parent
0ecfbf27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
unsafe-byname.test
testsuite/unsafe-byname.test
+20
-0
No files found.
testsuite/unsafe-byname.test
0 → 100644
View file @
d25c0e42
#! /bin/sh
# Copyright (C) 2002 by Martin Pool
# Call directly into unsafe_symlink and test its handling of various filenames
.
$srcdir
/
testsuite
/
rsync
.
fns
test_unsafe
()
{
result
=
`"$TOOLDIR/t_unsafe" "$1" "$2"`
||
test_fail
"Failed to check $1 $2"
if
[
"
$result
"
!=
"$3"
]
then
test_fail
"t_unsafe $1 $2 returned
\"
$result
\"
, expected
\"
$3
\"
"
fi
}
set
-
x
test_unsafe
foo
foo
safe
test_unsafe
../
foo
foo
unsafe
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