On Tue, Dec 04, 2012 at 01:58:13PM +0000, Julian Yon wrote:
 > > The descriptor is probably already "closed on exec" before the syscall
 > > tries to use it.
 > 
 > Nope. That happens later. I was looking through this code yesterday as
 > the topic interests me. The namei lookup happens pretty early on. I
 > haven't solved it, but the problem seems to be one of context - if you
 > try to execve /proc/self you'll also get ENOENT instead of the expected
 > EACCES.

That doesn't make much sense... nor does the procfs_lookup code shed
any significant amount of light on it.

-- 
David A. Holland
dholl...@netbsd.org

Reply via email to