Roland Mainz
2013-06-20 11:55:54 UTC
cc: ast-developers at research.att.com
Subject: Re: [ast-developers] When will the tree reopen for normal patches?
--------
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 combinationsSubject: 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 didexec 9< /tmp
and was able to do
cd /dev/fd/9/foo
to change to /tmp/foo.
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) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)