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
87fd4390
Commit
87fd4390
authored
Feb 22, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When preforming a recursive delete, push/pop the per-dir merge rules.
parent
564ef546
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
flist.c
flist.c
+5
-0
No files found.
flist.c
View file @
87fd4390
...
...
@@ -1790,6 +1790,7 @@ int delete_file(char *fname, int mode, int flags)
struct
file_list
*
dirlist
;
char
buf
[
MAXPATHLEN
];
int
j
,
zap_dir
,
ok
;
void
*
save_filters
;
if
(
max_delete
&&
deletion_count
>=
max_delete
)
return
-
1
;
...
...
@@ -1837,6 +1838,8 @@ int delete_file(char *fname, int mode, int flags)
}
flags
|=
DEL_FORCE_RECURSE
;
save_filters
=
push_local_filters
(
fname
,
strlen
(
fname
));
dirlist
=
get_dirlist
(
fname
,
0
);
for
(
j
=
dirlist
->
count
;
j
--
;
)
{
struct
file_struct
*
fp
=
dirlist
->
files
[
j
];
...
...
@@ -1848,6 +1851,8 @@ int delete_file(char *fname, int mode, int flags)
}
flist_free
(
dirlist
);
pop_local_filters
(
save_filters
);
if
(
max_delete
&&
deletion_count
>=
max_delete
)
return
-
1
;
...
...
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