X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 17 Aug 2010 16:19:40 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Existence check fails on Cygwin Perl
Message-ID: <20100817141940.GA20132@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <010016E11294264BB30D58894AB4040D02B201F1@de010369.de.ina.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <010016E11294264BB30D58894AB4040D02B201F1@de010369.de.ina.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Aug 17 14:58, Lemke, Michael  SZ/HZA-ZSB2 wrote:
> Now that 1.7.6 has appeared at my favorite mirror I repeated the test:
> 
> pc> uname -a
> CYGWIN_NT-5.1 p01080268 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin
> pc> ls -ls //junk/file
> ls: cannot access //junk/file: No such file or directory
> 
> Great, it's fixed.
> 
> But wait:
> 
> pc> ls -ls //server/junk
> 0 -rw-r--r-- 1 lemkemch Domain Users 0 Dec  1  2006 //server/junk
> 
> I was wrong above, here is a server called 'server'.  But it doesn't have
> a file 'junk'.
>  
> Doing the equivalent from a DOS box:
> 
> U:\>dir \\server\junk
> Logon failure: unknown user name or bad password.

Works for me if the server called "server" exists, but has no
share named "junk".

  bash$ ls -ls //server/junk
  ls: cannot access //server/cygwinx: No such file or directory

The noticable difference is that the access returns another error
on the Win32/native NT level:

  C:\>dir \\server\junk
  The network name cannot be found.

So there's YA error possible when accessing a non-existant share.
Great!  To fix this for Cygwin 1.7.7, I need an strace from you:

  bash$ strace -o share-logon-failure.trace ls //server/junk

Just send the share-logon-failure.trace file as attachment.


Corinna

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

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

