X-Recipient: archive-cygwin@delorie.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@cygwin.com
From: Eric Blake <ebb9@byu.net>
Subject:  Re: [1.7] bug in chdir
Date: Wed, 15 Jul 2009 13:58:33 +0000 (UTC)
Lines: 29
Message-ID:  <loom.20090715T134656-347@post.gmane.org>
References:  <loom.20090714T213944-461@post.gmane.org> <20090715084635.GQ27613@calimero.vinschen.de> <4A5DCFA7.9020106@byu.net> <20090715133117.GA25645@calimero.vinschen.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@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Corinna Vinschen <corinna-cygwin <at> 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

