X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 17 Aug 2010 16:26:36 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Existence check fails on Cygwin Perl Message-ID: <20100817142636.GA20273@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <010016E11294264BB30D58894AB4040D02B201F1 AT de010369 DOT de DOT ina DOT com> <20100817141940 DOT GA20132 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100817141940.GA20132@calimero.vinschen.de> User-Agent: Mutt/1.5.20 (2009-06-14) 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 On Aug 17 16:19, Corinna Vinschen wrote: > On Aug 17 14:58, Lemke, Michael SZ/HZA-ZSB2 wrote: > > 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. ...and a follow-up question: Are you running your test from a ssh session, by any chance? If so, what kind of authentication are you using, in terms of the different methods explained in http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview 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