commit | f82c739dee7fc3015b704d5d045726c3e70b02aa | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Tue May 24 16:17:55 2016 -0500 |
committer | Rob Landley <rob@landley.net> | Tue May 24 16:17:55 2016 -0500 |
tree | bc03b95e50d5974473e1b3d55e403b85472b3032 | |
parent | e2ea4fc86b67b70b18df8bc27fcf4ec160d3ff7d [diff] |
The "show parent command path" commit changed the criteria for active nodes, and the collate logic wasn't updated. (Oops.)
diff --git a/toys/posix/ps.c b/toys/posix/ps.c index 4f8d75a..b204962 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c
@@ -1075,8 +1075,8 @@ 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; }