Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
clsync
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2015-04-03 14:46:00 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d9840f35f3e1e7c2bf6665b80b9c665ca24e344d
d9840f35
1 parent
09df3c7c
Fixed a rules bug: directory can be marked _and_ not be walked through
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
sync.c
sync.c
View file @
d9840f3
...
...
@@ -1784,8 +1784,16 @@ int sync_mark_walk(ctx_t *ctx_p, const char *dirpath, indexes_t *indexes_p) {
path_rel
=
sync_path_abs2rel
(
ctx_p
,
node
->
fts_path
,
-
1
,
&
path_rel_len
,
path_rel
);
ruleaction_t
perm
=
rules_search_getperm
(
path_rel
,
S_IFDIR
,
rules_p
,
RA_WALK
,
NULL
);
debug
(
3
,
"perm == 0x%o"
,
perm
);
if
(
!
(
perm
&
RA_WALK
))
{
fts_set
(
tree
,
node
,
FTS_SKIP
);
debug
(
2
,
"setting an FTS_SKIP on the directory"
);
if
(
fts_set
(
tree
,
node
,
FTS_SKIP
))
warning
(
"Got error while fts_set(tree, node, FTS_SKIP): %s"
,
path_rel
);
}
if
(
!
(
perm
&
RA_MONITOR
))
{
debug
(
2
,
"don't mark the directory"
);
continue
;
}
...
...
Please
register
or
login
to post a comment