This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]