CVSROOT:        /cvs
Module name:    src
Changes by:     mill...@cvs.openbsd.org 2009/08/27 10:19:28

Modified files:
        lib/libc/gen   : fts.3 fts.c 
        usr.bin/find   : function.c 
        include        : fts.h 

Log message:
Don't stop traversing a directory hierarchy if we reach SHRT_MAX,
just stop updating fts_level so we don't overflow it.  This allows
rm, find, etc to operate on very deep hierarchies.  Consumers of
fts(3) do need to be aware that the actual level may be larger
than fts_level.  During the next libc major bump we will make
fts_level an int instead of a short.  OK deraadt@

Reply via email to