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
ef3f14e6
Commit
ef3f14e6
authored
Nov 27, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When the new "munge symlinks" option is off, a non-chroot
daemon should sanitize its symlinks, as it used to do.
parent
9585b276
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
flist.c
flist.c
+4
-1
rsyncd.conf.yo
rsyncd.conf.yo
+6
-0
No files found.
flist.c
View file @
ef3f14e6
...
...
@@ -927,8 +927,11 @@ static struct file_struct *recv_file_entry(struct file_list *flist,
bp
+=
SYMLINK_PREFIX_LEN
;
linkname_len
-=
SYMLINK_PREFIX_LEN
;
read_sbuf
(
f
,
bp
,
linkname_len
-
1
);
}
else
}
else
{
read_sbuf
(
f
,
bp
,
linkname_len
-
1
);
if
(
sanitize_paths
)
sanitize_path
(
bp
,
bp
,
""
,
lastdir_depth
);
}
}
#endif
...
...
rsyncd.conf.yo
View file @
ef3f14e6
...
...
@@ -190,6 +190,12 @@ every symlink's value. There is a perl script in the support directory
of the source code named "munge-symlinks" that can be used to add or remove
this prefix from your symlinks.
When this option is disabled on a writable module and "use chroot" is off,
incoming symlinks will be modified to drop a leading slash and to remove ".."
path elements that rsync believes will allow a symlink to escape the module's
hierarchy. There are tricky ways to work around this, though, so you had
better trust your users if you choose this combination of options.
dit(bf(max connections)) The "max connections" option allows you to
specify the maximum number of simultaneous connections you will allow.
Any clients connecting when the maximum has been reached will receive a
...
...
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