Mail Archives: cygwin/2001/09/23/17:21:04
> ----- Original Message -----
> From: "Ronald Landheer" <info AT rlsystems DOT net>
> To: <cygwin AT cygwin DOT com>
> Sent: Monday, September 24, 2001 7:04 AM
> Subject: [PATCH] ls & "magic" cygdrive dir (was: RE: cygdrive stuff)
>
>
> Hello all,
>
> After the overwhelming display of interest for my last mail on this
> subject (which had gone completely unnoticed as far as I can tell), I
I missed it - cannot even recall it :].
> have patched up the patch I sent earlier to take care of a lacking
> feature.
> Much of my original mail is still valid, so I'm re-posting:
>
> -- BEGIN RE-POST --
> > On Wed, Sep 19, 2001 at 04:11:52PM -0300, salvador wrote:
> >> 1) "ls -la /" doesn't show any cygdrive directory. Note it could
> >> be solved in the same way UNIX solves the /proc stuff, just
mounting
> >> over an existent directory a fake one.
> >> 2) "ls -la /cygdrive" doesn't work.
> > Correct.
> > If you'd like to correct this, patches will be, as always,
> > gratefully accepted.
> I saw this, it itched me, so I'm attaching a patch :)
>
> The patch I'm attaching is against the source 'ls.c' as found in
> fileutils-4.1-1. It introduces three methods, of which one is called:
> ls-cygwin-loop(). It is called whenever needed.
...
> Note it only shows you that cygdrive exists. As there is no "magic
dir"
> filetype, and it's not a real directory, I'm not showing it as one. My
> patch only does anything when there *is* no real directory - if it
comes
> through a stat() call, it is not handled.
You've hit it on the button. stat() is what you need to patch, not ls.
I stopped reading here... but if you patch stat() I promise to read
further.
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -