> or are we restricted by some standard from having dirname(3) > be able to be called on the results of a previous dirname(3) call Not exactly restricted from, but This is not strictly a bug; it is explicitly allowed by IEEE Std 1003.1-2001 (``POSIX.1'').
> in which case we should document this in the manpage? The dirname() function returns a pointer to static storage that may be overwritten by subsequent calls to dirname().