aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/msg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/msg.c b/src/msg.c
index 0b34e93..4f69e43 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -154,10 +154,8 @@ run(void)
if (S_ISREG(path_stat.st_mode))
copy_recursively(path, NULL, FTW_F, NULL);
- else if (S_ISDIR(path_stat.st_mode)) {
- printf("%s\n", path);
+ else if (S_ISDIR(path_stat.st_mode))
nftw(path, copy_recursively, 64, FTW_PHYS | FTW_ACTIONRETVAL);
- }
free(path);
}