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
8174bc35
Commit
8174bc35
authored
Feb 19, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If the server refuses a directory, don't allow any files to be
sent to the server inside that directory.
parent
9118a09c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
generator.c
generator.c
+18
-8
No files found.
generator.c
View file @
8174bc35
...
...
@@ -344,7 +344,7 @@ static void recv_generator(char *fname, struct file_list *flist,
struct
file_struct
*
file
,
int
ndx
,
int
f_out
,
int
f_out_name
)
{
static
int
missing_below
=
-
1
;
static
int
missing_below
=
-
1
,
excluded_below
=
-
1
;
static
char
*
fuzzy_dirname
=
NULL
;
static
struct
file_list
*
fuzzy_dirlist
=
NULL
;
struct
file_struct
*
fuzzy_file
=
NULL
;
...
...
@@ -401,14 +401,24 @@ static void recv_generator(char *fname, struct file_list *flist,
safe_fname
(
fname
),
ndx
);
}
if
(
server_filter_list
.
head
&&
check_filter
(
&
server_filter_list
,
fname
,
S_ISDIR
(
file
->
mode
))
<
0
)
{
if
(
verbose
)
{
rprintf
(
FINFO
,
"skipping server-excluded file
\"
%s
\"\n
"
,
safe_fname
(
fname
));
if
(
server_filter_list
.
head
)
{
if
(
excluded_below
>=
0
)
{
if
(
file
->
dir
.
depth
>
excluded_below
)
goto
skipping
;
excluded_below
=
-
1
;
}
if
(
check_filter
(
&
server_filter_list
,
fname
,
S_ISDIR
(
file
->
mode
))
<
0
)
{
if
(
S_ISDIR
(
file
->
mode
))
excluded_below
=
file
->
dir
.
depth
;
skipping:
if
(
verbose
)
{
rprintf
(
FINFO
,
"skipping server-excluded file
\"
%s
\"\n
"
,
safe_fname
(
fname
));
}
return
;
}
return
;
}
if
(
missing_below
>=
0
&&
file
->
dir
.
depth
<=
missing_below
)
{
...
...
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