unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#44182: Bug in nftw function
@ 2020-10-23 18:41 Matija Obid
  2021-05-21 18:31 ` lloda
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* bug#44182: Bug in nftw function
  2020-10-23 18:41 bug#44182: Bug in nftw function Matija Obid
@ 2021-05-21 18:31 ` lloda
  0 siblings, 0 replies; 2+ messages in thread
From: lloda @ 2021-05-21 18:31 UTC (permalink / raw)
  To: 44182-done; +Cc: matija.obid

Fixed in f499754bc8291a044c5034b634ac02a01bde9b49. Thanks!





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-21 18:31 UTC | newest]

Thread overview: 2+ messages (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
2021-05-21 18:31 ` lloda

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