Re: [PATCH 2/2] linux-user/main: Check errno when getting AT_EXECFD

2024-07-22 Thread Richard Henderson
On 7/21/24 19:08, Vivian Wang wrote: It's possible for AT_EXECFD to end up with a valid value of 0. Check errno when using qemu_getauxval instead of return value to handle this case. Not handling this case leads to a confusing condition where the executable ends up as fd 0, i.e. stdin. Signed-o

[PATCH 2/2] linux-user/main: Check errno when getting AT_EXECFD

2024-07-21 Thread Vivian Wang
It's possible for AT_EXECFD to end up with a valid value of 0. Check errno when using qemu_getauxval instead of return value to handle this case. Not handling this case leads to a confusing condition where the executable ends up as fd 0, i.e. stdin. Signed-off-by: Vivian Wang Fixes: 0b959cf5e4cc