aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/rm.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-02-06 16:42:44 -0600
committerRob Landley <rob@landley.net>2015-02-06 16:42:44 -0600
commitbd6c3f35ae226125737503dddac48e7924425b49 (patch)
treea69b157514a0febec29d84e780969e2022872d55 /toys/posix/rm.c
parent436a5c048e352fd6430de4376a083e5a2410c1a2 (diff)
downloadtoybox-bd6c3f35ae226125737503dddac48e7924425b49.tar.gz
Alright, the Android guys agree with the musl guys: faccessat(AT_SYMLINK_NOFOLLOW) is not supported.
Diffstat (limited to 'toys/posix/rm.c')
-rw-r--r--toys/posix/rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/rm.c b/toys/posix/rm.c
index 9561a670..7b7916c2 100644
--- a/toys/posix/rm.c
+++ b/toys/posix/rm.c
@@ -48,7 +48,7 @@ static int do_rm(struct dirtree *try)
// handle directory recursion
if (dir) {
// Handle chmod 000 directories when -f
- if (faccessat(fd, try->name, R_OK, AT_SYMLINK_NOFOLLOW)) {
+ if (faccessat(fd, try->name, R_OK, 0)) {
if (toys.optflags & FLAG_f) wfchmodat(fd, try->name, 0700);
else goto skip;
}