bug: udev does not create /dev/fd pseudo directory

Dennis Veatch dveatch at woh.rr.com
Thu Jan 19 18:06:13 UTC 2006


On Thursday 19 January 2006 13:01, sofar wrote:
> On Wed, 18 Jan 2006 09:36:05 -0500, Dennis Veatch <dveatch at woh.rr.com> 
wrote:
> > On Tuesday 17 January 2006 18:59, sofar wrote:
> >> florin/others:
> >>
> >> udev does not create the /dev/fd symlink to /proc/self/fd, which is
> >> required by (amongst others) bash to do pipe-redirection. This needs to
> >
> > be
> >
> >> fixed asap so that I can rollout 1.6.0-rc2.
> >>
> >> Auke
> >
> > I know enough about udev to hose it up. Having said that, at one time
> > those
> > symlinks existed. Found this (granted it's old);
> >
> > http://foo-projects.org/pipermail/lunar-commits/2004-November/031415.html
> >
> > I don't suppose it's just a simple matter of? ;
> >
> >         ln -snf /proc/self/fd $udev_root/fd
>
> this one is enough: /proc/self/fd is a directory and thus _all_ the entries
> below it do not need to be symlinked anymore.
>
> >         ln -snf /proc/self/fd/0 $udev_root/stdin
> >         ln -snf /proc/self/fd/1 $udev_root/stdout
> >         ln -snf /proc/self/fd/2 $udev_root/stderr
>
> it's not even possible - you'd symlink a file to itself.
>

I didn't really look that closely at it, just did a C&P :)

> Can this symlink be added to udev somehow?
>

Well I think "ln -snf /proc/self/fd $udev_root/fd" or it's equivelant can be 
poked in there somewhere. Not sure how at the moment.

-- 
You can tuna piano but you can't tune a fish.


More information about the Lunar-dev mailing list