* bug#44182: Bug in nftw function
@ 2020-10-23 18:41 Matija Obid
0 siblings, 0 replies; only message in thread
From: Matija Obid @ 2020-10-23 18:41 UTC (permalink / raw)
To: 44182
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-23 18:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23 18:41 bug#44182: Bug in nftw function Matija Obid
unofficial mirror of bug-guile@gnu.org
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://yhetil.org/guile-bugs/0 guile-bugs/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 guile-bugs guile-bugs/ https://yhetil.org/guile-bugs \
bug-guile@gnu.org
public-inbox-index guile-bugs
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.yhetil.org/yhetil.lisp.guile.bugs
nntp://news.gmane.io/gmane.lisp.guile.bugs
AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git