mirror of
https://github.com/schoebel/mars
synced 2025-01-05 05:40:51 +00:00
infra: fix default tree recursion depth
This commit is contained in:
parent
9c63bf0a38
commit
a751ec7c42
@ -1784,7 +1784,8 @@ int _op_scan(struct say_channel **say_channel,
|
||||
* a new subtree.
|
||||
*/
|
||||
if (S_ISDIR(dent->new_stat.mode) &&
|
||||
dent->d_depth <= maxdepth &&
|
||||
(maxdepth <= 0 ||
|
||||
dent->d_depth <= maxdepth) &&
|
||||
(!has_dir_list ||
|
||||
dent->d_depth > 0 ||
|
||||
dir_path_is_in(dent->d_path, path_list))) {
|
||||
|
Loading…
Reference in New Issue
Block a user