From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matija Obid Newsgroups: gmane.lisp.guile.bugs Subject: bug#44182: Bug in nftw function Date: Fri, 23 Oct 2020 20:41:01 +0200 Message-ID: <87y2jw945e.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="537"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.2.0; emacs 28.0.50 To: 44182@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Oct 23 20:52:52 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kW2BI-000AdL-0y for guile-bugs@m.gmane-mx.org; Fri, 23 Oct 2020 20:52:52 +0200 Original-Received: from localhost ([::1]:36264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW2BH-0003CO-2P for guile-bugs@m.gmane-mx.org; Fri, 23 Oct 2020 14:52:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kW22m-0001lw-8M for bug-guile@gnu.org; Fri, 23 Oct 2020 14:44:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kW22j-0002RO-Rf for bug-guile@gnu.org; Fri, 23 Oct 2020 14:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kW22j-0002HN-QC for bug-guile@gnu.org; Fri, 23 Oct 2020 14:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matija Obid Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 23 Oct 2020 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44182 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16034786378739 (code B ref -1); Fri, 23 Oct 2020 18:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2020 18:43:57 +0000 Original-Received: from localhost ([127.0.0.1]:58382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW22e-0002Gt-RE for submit@debbugs.gnu.org; Fri, 23 Oct 2020 14:43:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW201-0002Co-RC for submit@debbugs.gnu.org; Fri, 23 Oct 2020 14:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kW201-0006gC-Dx for bug-guile@gnu.org; Fri, 23 Oct 2020 14:41:13 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:47681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kW1zv-0002A6-Ap for bug-guile@gnu.org; Fri, 23 Oct 2020 14:41:13 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D1B7C2400FE for ; Fri, 23 Oct 2020 20:41:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1603478462; bh=0XMPm+XKsLCp7QgUjba84QozlJDuFI83MfQAv2WFLLs=; h=From:To:Subject:Date:From; b=goIMjX3WDAnMoAXQPX/Mb8o+EmwBfSq78SAeOa0vbMRig+tVfWPO2X1WdDTYsGfUo hm+61ajKVgG+Qkn3DZfRTg6o0DxqMtIzETcSkj/y8mfBwv0Bsb47FvCf3CsfxDuPTd IJEu/vGkw0eSwKQdCH7Ay/4KcY6qLxPgmzoyH1fndrJkHgo/eXINr+/9PixezxrO1D 6pExDPOpB6f/glf0iHrA5KBG+3NVGxbzZSDReLZevGm75V0tuAgquFOBRV+aTEIoup Sy3PP3lAyJIS88DlqgMzp6Jwz7vn8a+5TeqyG76Dp6aAluLmwS3qNVJ4PGWPQOyXGQ 85VrWp9elV4vg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CHtNG2l0Lz6tmt for ; Fri, 23 Oct 2020 20:41:02 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.66; envelope-from=matija.obid@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/23 11:10:06 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 23 Oct 2020 14:43:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9902 Archived-At: 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] bug in nftw, or more precisely in one of the > functions it calls > [20:12] (lambda () (go (clean filename) 0 0)) ;; but > (clean "/") returns "", which is clearly wrong > [20:13] (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