aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-06-20 22:19:13 -0500
committerRob Landley <rob@landley.net>2019-06-20 22:19:13 -0500
commit66050d1a023b4fde1ff0e30a31f2b09437605f3d (patch)
tree062c1e3f767abc66ebfdf18dc501016882e0b16d
parent90cc056dcd7ef04405c7e4d5535eb4ad2a349155 (diff)
downloadtoybox-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.c2
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)) {