Add maxdepth to recurse()
This also makes more sense.
This commit is contained in:
3
mv.c
3
mv.c
@@ -12,7 +12,8 @@ static int mv_status = 0;
|
||||
static int
|
||||
mv(const char *s1, const char *s2, int depth)
|
||||
{
|
||||
struct recursor r = { .fn = rm, .hist = NULL, .depth = 0, .follow = 'P', .flags = 0};
|
||||
struct recursor r = { .fn = rm, .hist = NULL, .depth = 0, .maxdepth = 0,
|
||||
.follow = 'P', .flags = 0 };
|
||||
|
||||
if (!rename(s1, s2))
|
||||
return (mv_status = 0);
|
||||
|
Reference in New Issue
Block a user