diff options
Diffstat (limited to 'toys/pending/tar.c')
-rw-r--r-- | toys/pending/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/tar.c b/toys/pending/tar.c index 8d4c3d60..d672d102 100644 --- a/toys/pending/tar.c +++ b/toys/pending/tar.c @@ -274,7 +274,7 @@ static int add_to_tar(struct dirtree *node) return ((DIRTREE_RECURSE | ((toys.optflags & FLAG_h)?DIRTREE_SYMFOLLOW:0))); } - if (node->parent && !dirtree_notdotdot(node)) return 0; + if (!dirtree_notdotdot(node)) return 0; path = dirtree_path(node, 0); add_file(hdl, &path, &(node->st)); //path may be modified free(path); |