delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/20/07:53:41

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=nPPkHlR64Gn3aCRCj8twWtmLbglE4XUG63tcatHZ0Ja
Mb/mNH2jGIEdRLZ0+7QlQ5GpxGLkApW2IIdBzVNUPCpuH8S3KwdaI3WfB2cCrIxo
JwzWAoqHkqVY1air4icnmdNtEOwjiOBcIeA8sAwT4DR7hrXe/jf839sjAMzZ2hh8
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
s=default; bh=+KAFO+CClx0gNgWW3KZJlbrYq5M=; b=xTnBu105cbEbidKht
zV4EZuL/LTQ3svRP9oe4Di5jfGNmXlEJbDbPIeRmsSH7Ab9TLVUpRoIZij/cV4Ql
bq3NcrlUDuN8Qn5mMeMI+w02lSOmjBu/Tehr0YzPXQCDLCC6n/rY0EKGgsJ+dFuX
xw4fL8Hqn6d0xz9LAuMwsmZ6w0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_VIA_APNIC,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1
From: Fedin Pavel <p DOT fedin AT samsung DOT com>
To: cygwin AT cygwin DOT com
References: <000201ce52c4$891b04c0$9b510e40$%fedin AT samsung DOT com> <20130517083612 DOT GE21752 AT calimero DOT vinschen DOT de> <000d01ce52dc$74e54bb0$5eafe310$%fedin AT samsung DOT com> <20130517102655 DOT GG21752 AT calimero DOT vinschen DOT de> <20130517145612 DOT GC7087 AT ednor DOT casa DOT cgf DOT cx>
In-reply-to: <20130517145612.GC7087@ednor.casa.cgf.cx>
Subject: RE: BUG: Ability to access nonexistent directories
Date: Mon, 20 May 2013 15:53:16 +0400
Message-id: <001a01ce5550$9e20afd0$da620f70$%fedin@samsung.com>
MIME-version: 1.0

 Hello!

> >>  Heh...
> >>  So, complete emulation would cost a major performance drop, right ?
> >>  Well... Can there be any setting which enables these checks ? At
> least we have one use case...
> >
> >Not without lots of new code.
> 
> So, maybe next Thursday?

 By the way, you said it would be slow... I have an idea how to implement a
compromise solution which would not be horribly slow.
 What if we check existence of intermediate paths not every time but only
when we meet thing like '..' ?
 I'll explain... For example, if we would access /foo/bar/baz, testing for
/foo and /foo/bar existence would supposedly be a waste of time, because we
would get "Object not found" on the final path too. But, when processing
thing like /foo/bar/../baz, we really need to check for intermediate dirs.
But, still not every time. In this example we actually need to test only for
/foo/bar's existence. I. e. a path to which we apply '..', before stripping
the last component.
 Does it make sense ?

 Kind regards.


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

- Raw text -


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