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
46bffd98
Commit
46bffd98
authored
Apr 01, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the setting of module_dirlen for a module path of "/".
This fixes a crash in the exclude code when chroot is off.
parent
41b84ce0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
clientserver.c
clientserver.c
+2
-4
No files found.
clientserver.c
View file @
46bffd98
...
@@ -321,13 +321,11 @@ static int rsync_module(int f_in, int f_out, int i)
...
@@ -321,13 +321,11 @@ static int rsync_module(int f_in, int f_out, int i)
/* TODO: Perhaps take a list of gids, and make them into the
/* TODO: Perhaps take a list of gids, and make them into the
* supplementary groups. */
* supplementary groups. */
if
(
use_chroot
)
{
if
(
use_chroot
||
(
module_dirlen
=
strlen
(
lp_path
(
i
)))
==
1
)
{
module_dirlen
=
0
;
module_dirlen
=
0
;
set_filter_dir
(
"/"
,
1
);
set_filter_dir
(
"/"
,
1
);
}
else
{
}
else
module_dirlen
=
strlen
(
lp_path
(
i
));
set_filter_dir
(
lp_path
(
i
),
module_dirlen
);
set_filter_dir
(
lp_path
(
i
),
module_dirlen
);
}
p
=
lp_filter
(
i
);
p
=
lp_filter
(
i
);
parse_rule
(
&
server_filter_list
,
p
,
MATCHFLG_WORD_SPLIT
,
parse_rule
(
&
server_filter_list
,
p
,
MATCHFLG_WORD_SPLIT
,
...
...
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