bug#44182: Bug in nftw function

Matija Obid <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
Hello,

If I run nftw/ftw function over root directory ("/") it doesn't find any
file.

Example: (nftw "/" (lambda* (file #:rest args) (write file) #t))

Explanation from irc:
> [20:11]        <RhodiumToad> bug in nftw, or more precisely in one of the
> 			     functions it calls
> [20:12]        <RhodiumToad> (lambda () (go (clean filename) 0 0))  ;; but
> 			     (clean "/") returns "", which is clearly wrong
> [20:13]        <RhodiumToad> (clean) is removing any excess trailing /, but it
> 			     doesn't have the required special case for
> 			     filenames that are just "/" and nothing
> 			     else

--
Best Regards,
Matija Obid
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.