History log of /external/toybox/lib/dirtree.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/lib/dirtree.c
29d30be31123129deac142c6208faa7a1a98b2d0 22-Sep-2014 Rob Landley <rob@landley.net> Respond to two static analysis issues in dirtree_path() reported by Ashwini Sharma.

dirtree->name is an array, not a pointer, so can't be zero. Remove the test.

We dereference plen without checking it for null but calling dirtree_path(0, 0)
is pilot error: only the _first_ call can have plen = 0. Add a comment.
/external/toybox/lib/dirtree.c
749c523240100484151b94a57b94ea44f2f28315 30-Jul-2014 Rob Landley <rob@landley.net> Actually set the again flag when calling the dirtree comeagain callback.
/external/toybox/lib/dirtree.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/lib/dirtree.c
ccb73f8bf9191c01c90975958a210c47175bd98c 26-Jul-2014 Rob Landley <rob@landley.net> Default xcreate/xopen to O_CLOEXEC. (Pass O_CLOEXEC in the flags to switch it back off.)

This way we're not leaking filehandles to children from things like find -exec.
/external/toybox/lib/dirtree.c
280bb5942526c06211185144a5cdb4c5d05aa2f6 22-Jul-2014 Rob Landley <rob@landley.net> Fix memory leak in error path.
/external/toybox/lib/dirtree.c
c810f9f80b9db62de09b6cf4c6ca770eed72ce53 06-Jul-2013 Isaac Dunham <idunham@lavabit.com> This inlines CRC64, and nothing more.
The functions involved were called only once.
/external/toybox/lib/dirtree.c
090c5c607ec682e5cfc03bbc745cd1ed28d5d6ce 31-Dec-2012 Rob Landley <rob@landley.net> Make dirtree_handle_callback() start with dirtree_ like the rest of the dirtree functions.
/external/toybox/lib/dirtree.c
37de8ed2aac771c118702b2315ccac7e02ecb729 08-Dec-2012 Rob Landley <rob@landley.net> Complicate the rm -i behavior to do what posix specifies.
/external/toybox/lib/dirtree.c
3162c27324bb6a26cfb9e47b266d2a3ee451f47b 06-Dec-2012 Rob Landley <rob@landley.net> Have dirtree_add_node() set parent so error message can provide full path.
/external/toybox/lib/dirtree.c
7aa651a6a4496d848f86de9b1e6b3a003256a01f 14-Nov-2012 Rob Landley <rob@landley.net> Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.

The actual code should be the same afterward, this is just cosmetic refactoring.
/external/toybox/lib/dirtree.c
a727b516ef77251f3736ed8368d9bb381664aaa5 18-Jul-2012 Rob Landley <rob@landley.net> Only add / in dirtree_path if it hasn't already got one, spotted by Ashwini Sharma.
/external/toybox/lib/dirtree.c
78aaef2a7ac9e852258e385ff3923353d78b8781 25-Jun-2012 Rob Landley <rob@landley.net> Unify chown and chgrp, add support for -hHLP flags.
/external/toybox/lib/dirtree.c
6ec2178fafa44b2e9d710218db1e9827c1c81857 16-Jun-2012 Rob Landley <rob@landley.net> Add dirtree_parentfd()
/external/toybox/lib/dirtree.c
4af1e1d784fa757e1d50b3fa42bd27f0a9b7782c 10-Jun-2012 Rob Landley <rob@landley.net> Implement DIRTREE_SYMFOLLOW and ls -cSHL.
/external/toybox/lib/dirtree.c
38d3cfb8a38c32111e4bc713396f78ddbb0e5f50 02-Jun-2012 Rob Landley <rob@landley.net> Changed my mind about the design again, now callback is dirtree_opennode() and recursion choice is how caller interprets flags.
/external/toybox/lib/dirtree.c
4fa1b32871f661a7e11898b274ec162d52c23ee9 02-Jun-2012 Rob Landley <rob@landley.net> Factor out dirtree_comeagain() callback, setting up depth-first search with open filehandle in node->extra.
/external/toybox/lib/dirtree.c
6cd8ae641e136ce090afad900954b586c474df01 27-May-2012 Rob Landley <rob@landley.net> Update chgrp so -R works, tweaking DIRTREE_COMEAGAIN design along the way.
/external/toybox/lib/dirtree.c
8c4ae8a78eae279db5d5be25f7b4618427844a92 20-May-2012 Rob Landley <rob@landley.net> dirtree logic cleanup: switch DIRTREE_NORECURSE and DIRTREE_NOSAVE to DIRTREE_RECURSE and DIRTREE_SAVE.
/external/toybox/lib/dirtree.c
4d0f02f30b8ecf207cfb812af83f6ab4e26f5497 09-May-2012 Rob Landley <rob@landley.net> Whitespace (tabs vs spaces) cleanup.
/external/toybox/lib/dirtree.c
9b3af46b888a57c2183545455e2de1cb457d9f2a 23-Apr-2012 Rob Landley <rob@landley.net> More work on ls. Now ls -lR sort of works-ish.
/external/toybox/lib/dirtree.c
eb7ea22c7505f10928e104a9df39edc70a8f7036 15-Apr-2012 Rob Landley <rob@landley.net> Rewrite dirtree so we don't need readdir, scandir, and fts.h. Rewrite ls (from scratch) to use new dirtree infrastructure. (This breaks everything else that currently uses dirtree.)
/external/toybox/lib/dirtree.c
b5d557f0860766bbe89854241e07ff6ec1a2e39a 13-Nov-2008 Rob Landley <rob@landley.net> Work around a reiserfs bug. (One line change, switch from looking at broken struct dirent->dt_type to looking at stat() output. The rest are unrelated variable renames.)
/external/toybox/lib/dirtree.c
988abb33a5c9d8023a8e1bd5535a75a16e5d9e46 12-May-2008 Rob Landley <rob@landley.net> Update mdev to work around the newest sysfs api breakage in the 2.6.25 kernel.
(Yeah, I know sysfs hasn't actually got an API, but I like to pretend...)
/external/toybox/lib/dirtree.c
603a93d3f04e3f713c5e64d10464720018c51f29 24-Mar-2008 Rob Landley <rob@landley.net> If we don't remember to closedir(), the leaked filehandles add up.
/external/toybox/lib/dirtree.c
7f184faac064c66ba28dd44c0df94e34f60db8b0 21-Feb-2008 Rob Landley <rob@landley.net> Make cp pass most of its test suite. Still need to add symlink support.
/external/toybox/lib/dirtree.c
6e6871c3b253d26ab31e328dd5f9b6996b75688c 20-Feb-2008 Rob Landley <rob@landley.net> Add first pass at cp, totally untested, unlikely to work yet. :)
/external/toybox/lib/dirtree.c
7bc7971c0b876b2074ede82327edeaaffa56eb01 17-Feb-2008 Rob Landley <rob@landley.net> Dirtree needs to use lstat(), not stat. And failure should probably be a
warning rather than an error (it means the directory tree is changing out
from under it, but only the user knows if that's fatal).
/external/toybox/lib/dirtree.c
2c226859cfc911c4a1eea009897050a16714aeec 16-Nov-2007 Rob Landley <rob@landley.net> Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
tweaks.
/external/toybox/lib/dirtree.c
103b7e031c4de0f9753e02d2217aa81819242278 04-Oct-2007 Rob Landley <rob@landley.net> Break out dirtree.c and let it call a function instead of returning the data.
/external/toybox/lib/dirtree.c