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
fe04532a
Commit
fe04532a
authored
Dec 28, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New support function: change_local_filter_dir().
parent
e4b619b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
exclude.c
exclude.c
+24
-0
No files found.
exclude.c
View file @
fe04532a
...
...
@@ -493,6 +493,30 @@ void pop_local_filters(void *mem)
free
(
pop
);
}
void
change_local_filter_dir
(
const
char
*
dname
,
int
dlen
,
int
dir_depth
)
{
static
int
min_depth
=
MAXPATHLEN
,
cur_depth
=
-
1
;
static
void
*
filt_array
[
MAXPATHLEN
/
2
+
1
];
if
(
!
dname
)
{
while
(
cur_depth
>=
min_depth
)
pop_local_filters
(
filt_array
[
cur_depth
--
]);
min_depth
=
MAXPATHLEN
;
cur_depth
=
-
1
;
return
;
}
assert
(
dir_depth
<
MAXPATHLEN
/
2
+
1
);
while
(
cur_depth
>=
dir_depth
&&
cur_depth
>=
min_depth
)
pop_local_filters
(
filt_array
[
cur_depth
--
]);
cur_depth
=
dir_depth
;
if
(
cur_depth
<
min_depth
)
min_depth
=
cur_depth
;
filt_array
[
cur_depth
]
=
push_local_filters
(
dname
,
dlen
);
}
static
int
rule_matches
(
char
*
name
,
struct
filter_struct
*
ex
,
int
name_is_dir
)
{
int
slash_handling
,
str_cnt
=
0
,
anchored_match
=
0
;
...
...
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