Bugzilla – Bug 1020
Does not find its pty in qemu-user-static
Last modified: 2022-03-04 09:15:31 MST
Hi, in qemu-user-static, /proc/self/stat contains a lot of zeroes. Sudo tries to read its tty from that file and fails if run in qemu-user-static. The URL contains instructions how to reproduce this. The reporter suggests to fall back to reading /proc/self/fd/0 if /proc/self/stat fails. Greetings Marc
I've added fallback code in https://www.sudo.ws/repos/sudo/rev/c32620c9f115 which should work around the qemu problem.
Fixed in sudo 1.9.10