From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27125 invoked by alias); 15 Jun 2007 06:46:35 -0000 Received: (qmail 27114 invoked by uid 22791); 15 Jun 2007 06:46:34 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 15 Jun 2007 06:46:30 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7268F6D47FD; Fri, 15 Jun 2007 08:46:27 +0200 (CEST) Date: Fri, 15 Jun 2007 06:46:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: [ITP] ncdu 1.1 Message-ID: <20070615064627.GS4179@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <466EEE8B.8010407@t-online.de> <2246C327437A574785E60C48E25E2A847E8F60@E3KMEMMCS2.ftbco.ftn.com> <46722AB4.4030400@t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46722AB4.4030400@t-online.de> User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2007-06/txt/msg00035.txt.bz2 On Jun 15 07:59, Christian Franke wrote: > DePriest, Jason R. wrote: > >... > >Incidentally, I downloaded the source from the > >http://dev.yorhel.nl/ncdu/ and it compiled flawlessly under Cygwin. > > > >I ran it and had it start at the root folder, "/". > > > >I anticipated it taking a very long time to finish, but not hours. I > >let it run for around four hours during which my processor stayed > 90% > >usage, even with On-access virus scanning disabled. > > > >During which time is dug through all of my mapped network drives, my > >entire local hard drive, and the Windows registry via /proc/registry. > > > > > > Confirmed. > Actually ncdu does not handle the special case "/" and calls e.g. > lstat("//bin",.). > This is OK on Linux & friends, but specifies an UNC path on Cygwin. > (I don't know whether POSIX specifies the behaviour on duplicate slashes). > ncdu also does not handle the error returned by lstat() in this case. POSIX allows double slashes having an implementation-defined meaning. See SUSv3, chapter 4.11 Pathname Resolution: http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11 especially the last paragraph. So NCDU is behaving non-portable in this case (as a lot of other applications, too, unfortunately). Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat