delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/21/06:48:26

X-Spam-Check-By: sourceware.org
Date: Thu, 21 Dec 2006 12:48:06 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ls: reading directory /cygdrive/c: No such file or directory
Message-ID: <20061221114806.GI8345@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <458A4CD0 DOT 2000606 AT foreach DOT at> <20061221092506 DOT GF8345 AT calimero DOT vinschen DOT de> <458A5851 DOT 3020704 AT mbaierl DOT com>
Mime-Version: 1.0
In-Reply-To: <458A5851.3020704@mbaierl.com>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Dec 21 10:48, Michael Baierl wrote:
> Corinna Vinschen wrote:
> >
> >Can you please run `strace -o ls.trace ls /cygdrive/c' and send the
> >ls.trace file as attachment to your reply, together with the output
> >of `cacls C:\\'?  This might help to figure out what happens.
> 
> Sure,
> here we go.
> 
> bash-3.2$ cacls C:\\
> C:\ BUILTIN\Administrators:(OI)(CI)F
>     NT AUTHORITY\SYSTEM:(OI)(CI)F
>     CREATOR OWNER:(OI)(CI)(IO)F
>     BUILTIN\Users:(OI)(CI)R
>     BUILTIN\Users:(CI)(special access:)
>                       FILE_APPEND_DATA
> 
>     BUILTIN\Users:(CI)(IO)(special access:)
>                           FILE_WRITE_DATA
> 
>     Everyone:R

Ok, these are the standard permissions on a stock XP install.

>   468   68522 [main] ls 4128 fhandler_disk_file::opendir: 0x6758C8 = opendir (/cygdrive/c)
>   231   68753 [main] ls 4128 geterrno_from_win_error: windows error 2 == errno 2
>    46   68799 [main] ls 4128 fhandler_disk_file::readdir: 0 = readdir (0x6758C8, 0x22C6D4) (.)
>    83   68882 [main] ls 4128 geterrno_from_win_error: windows error 2 == errno 2

This is weird.  Opening the directory works fine, but when it tries
to read the directory it gets a strange "no such file" error message.
This does not happen on my stock XP test system.  I can enumerate the
directory content just fine.

I'm missing a bit more information in our strace output at this point.
So I created a new snapshot which adds debug output here.  Could you
please (temporarily) replace your DLL with the DLL from the latest
developer snapshot from http://cygwin.com/snapshots/ , rerun 
`strace -o ls.trace ls /cygdrive/c' and send the new strace output?

If I might venture a guess.  This is not a generic permission problem or
some sort of obvious bug in Cygwin, otherwise it should be reproducible
on my machine.  So the usual question applies here:  Are you running some
firewall-, anti-virus-, or Logitech web cam software?  See the mailing
list archives for how certain products interact badly with Cygwin.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019