Re: Fix error code for ELF

2013-11-21 Thread Maxime Villard
Le 05/10/2013 23:10, Todd C. Miller a écrit : > That looks reasonable to me. I can't think of a reason to not > return the proper errno values, especially as things like ENOMEM > are already documented for execve(2). > > - todd > up...

Re: Fix error code for ELF

2013-10-05 Thread Todd C. Miller
That looks reasonable to me. I can't think of a reason to not return the proper errno values, especially as things like ENOMEM are already documented for execve(2). - todd

Re: Fix error code for ELF

2013-10-05 Thread Maxime Villard
Since I don't get any answer, I guess I have not been convincing enough. Here is the deal: a) It is obvious that there's an inconsistency: 'error' is almost always set before goto bad. b) Beyond the fact that it is obvious: if you have a look at this function, you will see that there are

Fix error code for ELF

2013-08-26 Thread Maxime Villard
Hi, after playing with some ELF binaries, I figured out that error codes received in errno do not always match with what is expected in the kernel. Actually, this function should return (error) instead of (ENOEXEC): Index: exec_elf.c ==