diff options
author | Rob Landley <rob@landley.net> | 2019-06-20 22:19:13 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-06-20 22:19:13 -0500 |
commit | 66050d1a023b4fde1ff0e30a31f2b09437605f3d (patch) | |
tree | 062c1e3f767abc66ebfdf18dc501016882e0b16d | |
parent | 90cc056dcd7ef04405c7e4d5535eb4ad2a349155 (diff) | |
download | toybox-66050d1a023b4fde1ff0e30a31f2b09437605f3d.tar.gz |
The O_PATH breaks stuff, have to work around Android's selinux rules for /
some other way.
-rw-r--r-- | lib/dirtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dirtree.c b/lib/dirtree.c index 6cb180eb..c5cf654a 100644 --- a/lib/dirtree.c +++ b/lib/dirtree.c @@ -117,7 +117,7 @@ struct dirtree *dirtree_handle_callback(struct dirtree *new, if (S_ISDIR(new->st.st_mode) && (flags & (DIRTREE_RECURSE|DIRTREE_COMEAGAIN))) flags = dirtree_recurse(new, callback, - openat(dirtree_parentfd(new), new->name, O_PATH|O_CLOEXEC), flags); + openat(dirtree_parentfd(new), new->name, O_CLOEXEC), flags); // If this had children, it was callback's job to free them already. if (!(flags & DIRTREE_SAVE)) { |