aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/diff.c')
-rw-r--r--toys/pending/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/diff.c b/toys/pending/diff.c
index 53bdbce3..b2177c4f 100644
--- a/toys/pending/diff.c
+++ b/toys/pending/diff.c
@@ -484,7 +484,7 @@ static int list_dir (struct dirtree *node)
{
int ret = 0;
- if (node->parent && !dirtree_notdotdot(node)) return 0;
+ if (!dirtree_notdotdot(node)) return 0;
if (S_ISDIR(node->st.st_mode) && !node->parent) { //add root dirs.
add_to_list(node);