invalid assumption that if this works
open("/proc/self/fd/<DIRFD>/.")
then other pathname calls will too
and this is then used to emulate missing *at() calls
On Sat, 10 Aug 2013 23:56:23 +0200 Roland Mainz wrote:
> On Sat, Aug 10, 2013 at 11:47 PM, Roland Mainz <[email protected]>
> wrote:
> > Hi!
> >
> > ----
> >
> > The following mini-script running on ast-ksh.2013-08-07/Solaris
> > 11/B145/AMD64/64bit fails with a "[Operation not applicable]" while
> > the same works on Linux:
> > -- snip --
> > $ ksh -c 'builtin cat ; builtin mkdir ; mkdir tmp ; redirect
> > {dirfd}<"./tmp" ; mkdir /proc/$$/fd/${dirfd}/test1 ; print "foo2"
> >>tmp/test1/a ; cat /proc/$$/fd/${dirfd}//test1/a ; rm tmp/test1/a ;
> > rmdir /proc/$$/fd/${dirfd}//test1 ; true'
> > mkdir: /proc/24955/fd/11//test1: [Operation not applicable]
> > -- snip --
> > ... it seems the /proc emulation in libast isn't working properly
> > somehow... ;-(
> BTW: The same works with /dev/fd/ ...
> ----
> Bye,
> Roland
> --
> __ . . __
> (o.\ \/ /.o) [email protected]
> \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
> /O /==\ O\ TEL +49 641 3992797
> (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers