Mercurial > hg > toybox
changeset 1482:44e72a07fedc draft
rm -rf needs to chmod directories to u+rwx, because directories need +x to search.
(Fixes messages about not being able to delete directories when running make test).
author | Isaac Dunham <ibid.ag@gmail.com> |
---|---|
date | Thu, 18 Sep 2014 13:05:21 -0500 |
parents | c0c91437138b |
children | 434c4ae19f05 |
files | toys/posix/rm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/rm.c Thu Sep 18 11:47:42 2014 -0500 +++ b/toys/posix/rm.c Thu Sep 18 13:05:21 2014 -0500 @@ -49,7 +49,7 @@ if (dir) { // Handle chmod 000 directories when -f if (faccessat(fd, try->name, R_OK, AT_SYMLINK_NOFOLLOW)) { - if (toys.optflags & FLAG_f) wfchmodat(fd, try->name, 0600); + if (toys.optflags & FLAG_f) wfchmodat(fd, try->name, 0700); else goto skip; } if (!try->again) return DIRTREE_COMEAGAIN;