Mercurial > hg > toybox
diff lib/lib.h @ 735:3aaba60133c8
Have dirtree_add_node() set parent so error message can provide full path.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 06 Dec 2012 15:13:30 -0600 |
parents | c8a595a38f14 |
children | 43e6ec52aa29 |
line wrap: on
line diff
--- a/lib/lib.h Mon Dec 03 16:16:06 2012 -0600 +++ b/lib/lib.h Thu Dec 06 15:13:30 2012 -0600 @@ -70,7 +70,7 @@ char name[]; }; -struct dirtree *dirtree_add_node(int dirfd, char *name, int symfollow); +struct dirtree *dirtree_add_node(struct dirtree *p, char *name, int symfollow); char *dirtree_path(struct dirtree *node, int *plen); int dirtree_notdotdot(struct dirtree *catch); int dirtree_parentfd(struct dirtree *node);