History log of /external/toybox/toys/posix/rm.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
382057f588fbf2c2f7950b85dd317721b8d04c07 21-Nov-2016 Rob Landley <rob@landley.net> Have dirtree_notdotdot() pass through !node->parent so . and .. on the command
line aren't filtered out. Audited all the callers and removed redundant
calls, adjusted call sequence, etc. (And let rm _not_ do this, because posix.)
/external/toybox/toys/posix/rm.c
d3a435e53c94ec25b4ae5fa2614f49ef8884e08a 06-Jan-2016 Rob Landley <rob@landley.net> Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable format
checking, and fix up format checking complaints.

Added out(type, value) function to stat to avoid a zillion printf typecasts.
/external/toybox/toys/posix/rm.c
b1353fb9185928249f273340c601244291e269fe 08-Sep-2015 Rob Landley <rob@landley.net> Remove prompt argument from yesno(), caller can fprintf(stderr, "blah") itself.

This fixes the build break, the change to yesno() prototype accidentally got
checked in last commit. (Oops, sorry.)
/external/toybox/toys/posix/rm.c
459cab00f22c88ed64f56d9928baeba7a10789d5 07-Feb-2015 Rob Landley <rob@landley.net> In rm, init using to AT_REMOVEDIR in the dir case earlier.

(If you had a chmod 000 directory and did rm -r on it without -f, after the prompt it would complain it was a directory.)
/external/toybox/toys/posix/rm.c
bd6c3f35ae226125737503dddac48e7924425b49 06-Feb-2015 Rob Landley <rob@landley.net> Alright, the Android guys agree with the musl guys: faccessat(AT_SYMLINK_NOFOLLOW) is not supported.
/external/toybox/toys/posix/rm.c
7e96783ee7ea149d157f14151a8c2592c36f074e 18-Sep-2014 Isaac Dunham <ibid.ag@gmail.com> 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).
/external/toybox/toys/posix/rm.c
e1366f02fea3cb035cc4ed0b59d12f1962b6ebfd 13-Sep-2014 Rob Landley <rob@landley.net> Bug report from luckboy: rm -f on a broken symlink didn't work because our "does it exist" test (to avoid errors on rm -f of nonexistent files) said it didn't.

The fix: replace the access() with unlink(), which produces the same "does not
exist" errno and has the added bonus of acting as a fastpath for rm -f on
non-directories. (And since it produces a different error on directories,
falls through to the old behavior there.)

Most of this commit is comment updates explaining being subtle. :)
/external/toybox/toys/posix/rm.c
fec3fd1f8ac1db9ed87b79bd3eb5e38aa835e881 26-Jul-2014 Rob Landley <rob@landley.net> Move DIRTREE_COMEAGAIN second callback up to when the filehandle is still open, and add dir->again variable to distinguish second call instead of checking for -1 filehandle.
/external/toybox/toys/posix/rm.c
5ce682e4f4b0c789d591afce1e053efd01313f2d 04-Jul-2014 Rob Landley <rob@landley.net> Fix rm -rf of chmod 000 directories.
/external/toybox/toys/posix/rm.c
b6dd79b93db4c6ff0ef21d4ca11610e18533173f 06-Sep-2013 Rob Landley <rob@landley.net> Missing typecast in recent rm fix. Oops.
/external/toybox/toys/posix/rm.c
829497311b541b63e08aa17768c8e67e95b73638 05-Sep-2013 Rob Landley <rob@landley.net> fix rm to handle "mkdir sub/sub && chmod 007 sub/sub && rm -rf sub".

Previous version didn't delete it, but exited without error. Neither was right.
/external/toybox/toys/posix/rm.c
662a267c9b52f256b027d0f176a846b1d973ab99 02-Jan-2013 Rob Landley <rob@landley.net> Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
/external/toybox/toys/posix/rm.c
5806b9ff1656d9d32563a61457cb64ed025002dd 13-Dec-2012 Rob Landley <rob@landley.net> The Linux kernel "make clean" calls rm -f with no arguments, which apparently is not an error.
/external/toybox/toys/posix/rm.c
b9bde7b403a8dcf8e8a1417383bb70816a7c1958 10-Dec-2012 Rob Landley <rob@landley.net> essat's flag not to follow symlinks isn't in the system call, and if libc is supposed to implement this as a wrapper uClibc gets it wrong. So use the stat info about symlinks instead. (Doesn't check the parent directory, but if that's read only we can't delete the file anyway so prompting is moot.)
/external/toybox/toys/posix/rm.c
37de8ed2aac771c118702b2315ccac7e02ecb729 08-Dec-2012 Rob Landley <rob@landley.net> Complicate the rm -i behavior to do what posix specifies.
/external/toybox/toys/posix/rm.c
c087a4a911c29f081efbdbaf7c4513f34acf1928 07-Dec-2012 Rob Landley <rob@landley.net> New rm command.
/external/toybox/toys/posix/rm.c