Add maxdepth to recurse()
This also makes more sense.
This commit is contained in:
3
tar.c
3
tar.c
@@ -315,7 +315,8 @@ int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
FILE *fp;
|
||||
struct recursor r = { .fn = c, .hist = NULL, .depth = 0, .follow = 'P', .flags = DIRFIRST};
|
||||
struct recursor r = { .fn = c, .hist = NULL, .depth = 0, .maxdepth = 0,
|
||||
.follow = 'P', .flags = DIRFIRST };
|
||||
struct stat st;
|
||||
char *file = NULL, *dir = ".", mode = '\0';
|
||||
|
||||
|
Reference in New Issue
Block a user