delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/14/07:02:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: cd /proc/garbage
Date: Thu, 14 Apr 2005 12:01:06 +0100
MIME-Version: 1.0
In-Reply-To: <Pine.LNX.4.44.0504140614020.7355-200000@ares.its.yale.edu>
Message-ID: <SERRANOB1FxQFM83UV800000144@SERRANO.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 14 Apr 2005 11:01:09.0513 (UTC) FILETIME=[438E0F90:01C540E1]

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

- Raw text -


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