OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Felix von Leitner (leitnerconvergence.de)
Date: Wed Mar 28 2001 - 08:28:10 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Thus spake Solar Designer (solaropenwall.com):
    > A related topic -- has anyone audited the fts code in glibc? I am
    > using it in the mtree port and it'd rather be safe.

    I started implementing a "mini fts" for http://www.fefe.de/dietlibc/,
    but I got disgusted and threw it away. I hope that it is just a
    misunderstanding, but am I right that fts has to keep a data structure
    to detect cycles?

    Who designs APIs like this? Why not simply have a struct { char* name;
    struct stat s; } and a callback that says if fts should traverse into
    this subdir and one callback that gets called for each file? FTS can
    not be implemented without malloc. IMHO that sucks big time.

    Felix