On Wed, Jun 19, 2013 at 4:16 PM, David Korn <[email protected]> wrote:
> cc: [email protected]
> Subject: Re: [ast-developers] When will the tree reopen for normal patches?
> --------
>
>> cd /dev/fd/$d no longer works
>
> What do you mean that it no longer works, I just did
> exec 9< /tmp
> and was able to do
> cd /dev/fd/9/foo
> to change to /tmp/foo.
AFAIK the issue is that |openat()| on some platforms/libc combinations
doesn't like |NULL| as |filename| argument and returns "Bad Address"
via |errno|.
The quick fix for the issue seems to be:
-- snip --
diff -r -u src/cmd/ksh93/bltins/cd_pwd.c src/cmd/ksh93/bltins/cd_pwd.c
--- src/cmd/ksh93/bltins/cd_pwd.c 2013-05-16 16:36:14.000000000 +0200
+++ src/cmd/ksh93/bltins/cd_pwd.c 2013-06-20 13:46:10.754325192 +0200
@@ -114,7 +114,7 @@
{
while(*p=='/')
p++;
- path = *p?(const char*)p:0;
+ path = *p?(const char*)p:e_dot;
dir = fd;
}
}
-- snip --
----
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