Properly handle recursion in recurse()

The restructuring of recurse() in the last few weeks actually broke
the recursion-flags in different tools.
As a long-term goal, the recursor should have a field "maxdepth"
which should be "1" for the non-Rflag-case. "0" stands for unlimited.
This commit is contained in:
FRIGN
2015-04-18 21:24:17 +02:00
committed by sin
parent e2edbdcb87
commit e14d9412f8
8 changed files with 24 additions and 20 deletions

1
fs.h
View File

@@ -19,6 +19,7 @@ struct recursor {
enum {
SAMEDEV = 1 << 0,
DIRFIRST = 1 << 1,
NODIRS = 1 << 2,
};
extern int cp_aflag;