This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: cd /proc/garbage
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 14 Apr 2005 12:01:06 +0100
- Subject: RE: cd /proc/garbage
----Original Message----
>From: Lev S Bishop
>Sent: 14 April 2005 11:19
> I looked and this doesn't seem to have been mentioned in the archives.
> You can cd to any random subdirectory of a directory in the /proc
> filesystem, irrespective of whether it exists. Examples:
>
> $ cd /proc/banana
> $ ls
> ls: .: Not a directory
Yep, it's a side effect of the way the virtual filesystem for /proc works.
If it ever mattered to anyone, it would most likely be a simple enough patch
to the cwd code in the cygwin dll to make it check the directory by trying
it out before it permitted cwd to succeed, but I don't know how much
performance impact it might conceivably have.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/