This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: BUG: Ability to access nonexistent directories
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 20 May 2013 12:28:18 -0400
- Subject: Re: BUG: Ability to access nonexistent directories
- 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> <001a01ce5550$9e20afd0$da620f70$%fedin at samsung dot com> <519A3E58 dot 4010609 at cygwin dot com> <AF416313505341088247FB0EF502C1CA at ahallpc>
- Reply-to: cygwin at cygwin dot com
On 5/20/2013 11:58 AM, Andy Hall wrote:
<snip>
So here is a naïve question. Contrary to Corrina’s posting at
http://cygwin.com/ml/cygwin/2013-01/msg00173.html, the underlying OS
must effectively evaluate a path from left to right.
As you say, it's a naive question. Just checking around the web for
information on "bypass traverse checking" would help you understand
things better. This setting is on by default for Windows users. This
defines the behavior of how paths are traversed in Windows. When the
flag is enabled, Windows allows a user to traverse through directories
that he/she has no rights to use in any other way. A side-effect is
that it doesn't even check if the directory in question exists. Don't
believe me? Try the below in a command prompt (i.e. cmd.exe):
C:\tmp>mkdir -p a\c
C:\tmp\a\c>dir a
Volume in drive C is Default
Volume Serial Number is <redacted>
Directory of C:\tmp\a\c
C:\tmp\a\c>dir a\b
The system cannot find the file specified.
C:\tmp>cd a\b\..\c
C:\tmp\a\c>
So I think we can take Corinna's assessment of how Windows manages things
in this case as valid.
--
Larry
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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