From 3162c27324bb6a26cfb9e47b266d2a3ee451f47b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 6 Dec 2012 15:13:30 -0600 Subject: Have dirtree_add_node() set parent so error message can provide full path. --- toys/posix/du.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/du.c') diff --git a/toys/posix/du.c b/toys/posix/du.c index 68cf286d..6c09aec6 100644 --- a/toys/posix/du.c +++ b/toys/posix/du.c @@ -203,7 +203,7 @@ void du_main(void) while(*toys.optargs) { TT.depth = 0; char *path = make_pathproper(*toys.optargs); - struct dirtree *root = dirtree_add_node(AT_FDCWD, path, symfollow); //create a node + struct dirtree *root = dirtree_add_node(0, path, symfollow); if(root) { TT.st_dev = root->st.st_dev; handle_callback(root, do_du); //this will recurse thru the DIR children. -- cgit v1.2.3