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/pending/diff.c
|
433296f8802ccf82eb32da3bfa002df2a8b5095a |
|
20-Mar-2016 |
Andy Chu <andychu@google.com> |
Fix a buffer overflow in diff -r. We were doing two 32-byte memset()s instead of two 16-byte memset()s. 'dir' referred to the instance (array of 2) and not the struct type. Add some test coverage for diff, including a case that hit this bug. The bug was found by running cp.test under AddressSanitizer, since it happens to use diff.
/external/toybox/toys/pending/diff.c
|
8d95074b7d034188af8542aaea0306d3670d71be |
|
07-Mar-2016 |
Rob Landley <rob@landley.net> |
Cleanup pass on the dirtree infrastructure, in preparation for making rm -r handle infinite depth. Fix docs, tweak dirtree_handle_callback() semantics, remove dirtree_start() and don't export dirtree_handle_callback(), instead offer dirtree_flagread(). (dirtree_read() is a wrapper around dirtree_flagread passing 0 for flags.)
/external/toybox/toys/pending/diff.c
|
aab9164df395a4b0878b0ad930a5ec8a806a58e9 |
|
10-May-2015 |
Rob Landley <rob@landley.net> |
Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from under traversal. Pass through full flag set in dirtree_add_node(), add dirtree_start() wrapper to provide symlink-only behavior (avoiding a lot of DIRTREE_SYMFOLLOW*!!(logic) repeated in callers).
/external/toybox/toys/pending/diff.c
|
64038da9fe9eab1fcf7e1fb6c654a6820c6d2064 |
|
03-Aug-2014 |
Rob Landley <rob@landley.net> |
Squash mix of tabs and spaces to just spaces.
/external/toybox/toys/pending/diff.c
|
3acdbc16e8e474c99ba945a869059beccc6ac1d5 |
|
02-Aug-2014 |
Ashwini Sharma <ak.ashwini1981@gmail.com> |
New toys unified DIFF and USERDEL.
/external/toybox/toys/pending/diff.c
|