# HG changeset patch # User Michael Spacefalcon # Date 1420668951 0 # Node ID 805e99848aea77a9b7ec6180febdbe7a92294c9a # Parent 37f78f986a0acae94176a0b2562704ff3ef24eeb grokdsn: buglet in the hierarchy traversal order diff -r 37f78f986a0a -r 805e99848aea miscprog/grokdsn.c --- a/miscprog/grokdsn.c Wed Jan 07 08:09:30 2015 +0000 +++ b/miscprog/grokdsn.c Wed Jan 07 22:15:51 2015 +0000 @@ -272,12 +272,12 @@ if (ndir >= 0) dump_dir_level(ndir, indent); dump_dir_entry(rec, indent); + ndir = le32toh(rec->subtree_dirid); + if (ndir >= 0) + dump_dir_level(ndir, indent + 2); ndir = le32toh(rec->right_child); if (ndir >= 0) dump_dir_level(ndir, indent); - ndir = le32toh(rec->subtree_dirid); - if (ndir >= 0) - dump_dir_level(ndir, indent + 2); return(0); }