X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Robert Pendell Subject: Re: ls: reading directory /: No such file or directory Date: Sun, 23 Dec 2007 20:20:23 -0500 Lines: 162 Message-ID: References: <476E5113 DOT 20902 AT bigfoot DOT com> <476E5430 DOT 3D01052D AT dessent DOT net> <5JvbHx3lQrwa092yn AT verizon DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <5JvbHx3lQrwa092yn@verizon.net> X-Antivirus: avast! (VPS 071223-0, 12/23/2007), Outbound message X-Antivirus-Status: Clean X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeff wrote: > On Sun, 23 Dec 2007 04:27:28 -0800, > Brian Dessent wrote: > >> In this case, NTFS reserves the colon to denote alternate data streams. > > Heh... A Google search on that topic made for some interesting reading. > In light of it, I'm wondering at this curiosity, which I have not seen > with previous versions of cygwin1.dll: > > $ ls -la / > [after 2-3 seconds delay...] > ls: reading directory /: No such file or directory > total 430 > drwx------+ 21 Administrator None 0 Dec 13 06:11 . > drwx------+ 21 Administrator None 0 Dec 13 06:11 .. > drwx------+ 2 Administrator None 0 Dec 19 12:23 bin > -rwx------ 1 Administrator None 766 Jan 8 1997 cygnus.ico > -rwx------ 1 Administrator None 55 Jun 1 2002 cygwin.bat > -rwx------ 1 Administrator None 7022 Dec 19 11:08 cygwin.ico > drwx------+ 6 Administrator None 0 Dec 19 10:39 cygwindl > drwx------+ 2 Administrator None 0 Dec 19 02:25 dev > drwx------+ 11 Administrator None 0 Dec 19 12:55 etc > drwx------+ 6 Administrator None 0 Dec 23 11:04 home > drwx------+ 22 Administrator None 0 Dec 19 02:24 lib > drwx------+ 2 Administrator None 0 May 9 2006 sbin > -rwx------ 1 Administrator None 415232 Dec 13 06:11 setup.exe > -rwx------ 1 Administrator None 29636 Oct 1 2005 setup.log > -rwx------ 1 Administrator None 1381 Oct 1 2005 setup.log.full > drwx------+ 2 Administrator None 0 Dec 23 15:42 tmp > drwx------+ 19 Administrator None 0 Dec 19 02:22 usr > drwx------+ 8 Administrator None 0 Dec 19 02:22 var > > [Note: 'ls -l' and 'ls' do the same.] > > $ uname -a > CYGWIN_NT-5.1 winxp-notebook 1.5.25(0.156/4/2) 2007-12-14 19:21 i686 Cygwin > > $ mount > > \\Winxp-inspiron\c on /inspiron type system (binmode) > C:\WINDOWS\TEMP on /tmp type system (binmode) > \\Winxp-desk\c on /desk-c type system (binmode) > \\Winxp-desk\d on /desk-d type system (binmode) > C:\Cygwin\bin on /usr/bin type system (binmode) > C:\Cygwin\lib on /usr/lib type system (binmode) > C:\Cygwin on / type system (binmode) > A: on /a type system (textmode) > C: on /c type system (textmode) > D: on /d type system (textmode) > E: on /e type system (textmode) > > [Note: this is the same mount table I've been using for the past > several versions of the dll. So, does '/:' have something to do with > alternate data streams? Hmmm... Let's check with a streams-aware > enhanced command processor...] > > C:\>dir /? > Display information about files and subdirectories. > [...] > /: (show streams) /L(ower case) > [...] > > [After creating an experimental file with an ADS...] > > C:\DOWNLOAD\extract>dir /: > > Volume in drive C is unlabeled Serial number is 485E:9DF1 > Directory of C:\DOWNLOAD\extract\* > > 12/23/2007 1:46p . > 12/23/2007 1:46p .. > [...] > 12/23/2007 1:45p 50 stream.txt [<== base file] > 45 aux:$DATA [<== stream.txt:aux] > 2,098,087 bytes in 59 files and 2 dirs 2,207,744 bytes allocated > 2,882,252,800 bytes free > > [OK, now let's see if any ADS show up in connection to Cygwin > directories...] > > C:\>dir /: > > Volume in drive C is unlabeled Serial number is 485E:9DF1 > Directory of C:\* > > 12/13/2007 6:11a cygwin > 3/14/2004 5:28p Documents and Settings > [...] > > C:\>dir /: cygwin\ > > Volume in drive C is unlabeled Serial number is 485E:9DF1 > Directory of C:\cygwin\* > > 12/13/2007 6:11a . > 12/13/2007 6:11a .. > 12/19/2007 12:23p bin > 12/19/2007 10:39a cygwindl > 12/19/2007 2:25a dev > 12/19/2007 12:55p etc > 12/23/2007 11:04a home > 12/19/2007 2:24a lib > 5/09/2006 6:53a sbin > 4/08/2007 7:04a tmp > 12/19/2007 2:22a usr > 12/19/2007 2:22a var > [...] > > This only shows up with 'ls [options] /' ie. when listing the Cygwin > root directory, and nowhere else. Any ideas? > > Jeff I was unable to reproduce this from here. My cygwin.dll file is the same as yours (I just updated). I also ran the same series of commands so you can compare results... $ ls -la / total 9 drwxrwx---+ 13 shinji Users 0 Dec 15 00:57 . drwxrwx---+ 13 shinji Users 0 Dec 15 00:57 .. - -rwxr-x---+ 1 shinji Users 57 Dec 13 13:15 Cygwin.bat - -rwxr-x---+ 1 shinji Users 7022 Dec 23 20:15 Cygwin.ico drwxrwx---+ 2 shinji Users 0 Dec 23 20:15 bin dr-xr-xr-x 1 0 root 0 Dec 31 1969 cygdrive drwxrwx---+ 2 shinji Users 0 Dec 13 13:14 dev drwxrwx---+ 11 shinji Users 0 Dec 13 13:24 etc drwxrwxrwx+ 3 shinji None 0 Dec 15 00:57 home drwxrwx---+ 18 shinji Users 0 Dec 23 20:15 lib drwxrwx---+ 3 shinji Users 0 Dec 13 11:27 packages dr-xr-xr-x 1 shinji None 0 Nov 30 2006 proc drwxrwxrwt+ 2 shinji Users 0 Dec 23 20:15 tmp drwxrwx---+ 16 shinji Users 0 Dec 13 13:22 usr drwxrwx---+ 7 shinji Users 0 Dec 13 13:22 var shinji AT Shinji-Winxp ~ $ uname -a CYGWIN_NT-5.1 Shinji-Winxp 1.5.25(0.156/4/2) 2007-12-14 19:21 i686 Cygwin shinji AT Shinji-Winxp ~ $ mount C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) c: on /cygdrive/c type system (binmode,noumount) d: on /cygdrive/d type system (binmode,noumount) As for the /: bit. /: is likely just / (indicating root folder) and the colon (:) is just a seperator to split between the error messages. This is typical. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHbwlXs1pR2j1qW+sRAno7AJ9c8BGmzgeSwgNTXaIKjrRp5Ez1QwCfQR53 hcAzACn9omv1VFp5qD/f264= =0LI+ -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/