X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Blake Subject: Re: [1.7] bug in chdir Date: Wed, 15 Jul 2009 13:58:33 +0000 (UTC) Lines: 29 Message-ID: References: <20090715084635 DOT GQ27613 AT calimero DOT vinschen DOT de> <4A5DCFA7 DOT 9020106 AT byu DOT net> <20090715133117 DOT GA25645 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Corinna Vinschen cygwin.com> writes: > > $ ls -dF //eblake //home //bin > > ls: cannot access //bin: No such file or directory > > //eblake/ //home/ > > > > > > I guess that means, since //bin failed but //home succeeded, that there is > > a machine on the domain at my work which is named home but which is > > offline at the moment? (confusing enough? who names their work machine 'home'?) > > It seems so. The fact that accessing //home does not create an > exception points to a successful SMB name resolution. Of course, my work domain is so big that 'echo //hom*' takes minutes, due to the large number of known hosts that are not currently accessible, so I can't easily test whether //home is a known host using readdir. But it seems like this problem could be recreated on a much smaller network, by just disconnecting an appropriate machine from the network (although I won't be able to try that until I'm back home). It still seems like chdir() should do some sort of stat() test rather than just a successful SMB name resolution when attempting to change to //name. -- Eric Blake -- 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