Re: 0417 snapshot: exec() fails on /proc/self/exe

2011-04-20 Thread Corinna Vinschen
On Apr 20 06:15, Andy Koppe wrote: > No need for that test case actually. Symbolic links within /proc just > seem to be broken: Fixed in CVS. Just an oversight when the /proc virtual devices have been renumbered a couple of days ago. Thanks for the report, Corinna -- Corinna Vinschen

Re: 0417 snapshot: exec() fails on /proc/self/exe

2011-04-19 Thread Andy Koppe
On 19 April 2011 21:16, Andy Koppe wrote: > With the latest snapshot, exec() fails on /proc/self/exe: > > $ cat test.c > #include > #include > #include > #include > #include > > int main(int argc, char *argv[]) > { >  if (argc > 1 && !fork()) { >    execl("/proc/self/exe", argv[0], (char *)0);

Re: 0417 snapshot: exec() fails on /proc/self/exe

2011-04-19 Thread Eric Blake
On 04/19/2011 02:16 PM, Andy Koppe wrote: > int main(int argc, char *argv[]) > { > if (argc > 1 && !fork()) { > execl("/proc/self/exe", argv[0], (char *)0); > puts(strerror(errno)); > } > return 0; > } > > $ cc test.c > > $ ./a bla > Bad file descriptor > > With 1.7.9, it prints no