From f82c739dee7fc3015b704d5d045726c3e70b02aa Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 24 May 2016 16:17:55 -0500 Subject: The "show parent command path" commit changed the criteria for active nodes, and the collate logic wasn't updated. (Oops.) --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') diff --git a/toys/posix/ps.c b/toys/posix/ps.c index 4f8d75a9..b204962b 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -1075,8 +1075,8 @@ static struct carveup **collate_leaves(struct carveup **tb, struct dirtree *dt) while (dt) { struct dirtree *next = dt->next; + if (dt->extra) *(tb++) = (void *)dt->extra; if (dt->child) tb = collate_leaves(tb, dt->child); - else *(tb++) = (void *)dt->extra; free(dt); dt = next; } -- cgit v1.2.3