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
e052b21f
Commit
e052b21f
authored
Sep 06, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set umask so that symlinks will have the right permissions on BSD.
parent
b2f02464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
rsync.fns
testsuite/rsync.fns
+19
-0
No files found.
testsuite/rsync.fns
View file @
e052b21f
...
...
@@ -20,10 +20,26 @@ printmsg() {
echo
"
$1
"
}
####################
# Build test directories TO and FROM, with FROM full of files.
hands_setup
()
{
[
-d
$FROM
]
||
mkdir
$FROM
[
-d
$TO
]
||
mkdir
$TO
# On some BSD systems, the umask affects the mode of created
# symlinks, even though the mode apparently has no effect on how
# the links behave in the future, and it cannot be changed using
# chmod! rsync always sets its umask to 000 so that it can
# accurately recreate permissions, but this script is probably run
# with a different umask.
# This causes a little problem that "ls -l" of the two will not be
# the same. So, we need to set our umask before doing any creations.
umask
0
# set up test data
touch
${
FROM
}
/empty
mkdir
${
FROM
}
/emptydir
...
...
@@ -42,9 +58,12 @@ hands_setup() {
ls
-ltr
/etc
>
${
FROM
}
/dir/subdir/subsubdir/etc-ltr-list
mkdir
${
FROM
}
/dir/subdir/subsubdir2
ls
-lt
/bin
>
${
FROM
}
/dir/subdir/subsubdir2/bin-lt-list
umask
077
}
###########################
# Run a test (in '$1') then compare directories $2 and $3 to see if
# there are any difference. If there are, explain them.
...
...
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