|
Bugzilla – Full Text Bug Listing |
| Summary: | use_pty sometimes writes stderr to the wrong PTY | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Pierre Bourdon <delroth> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.9.14 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Pierre Bourdon
2023-07-25 15:26:15 MDT
Sudo checks whether std{in,out,err} is a tty and, if not, interposes itself using a pipe. However, it should probably check that the fd is connected to the user's /dev/tty instead of just being a terminal.
This has been fixed by https://www.sudo.ws/repos/sudo/rev/42838100b526 Thank you! I've just tested the patch and confirmed the NixOS integration tests are now passing. Are you planning to include this in a p4 release in the near future or leaving this bugfix for .15? Just wondering if I should wait a bit more or just backport this patch on top of p3. (In case this is useful for your decision process: it's ~0 work for us - NixOS - to carry the backported patch on top of p3. So if it's a significant amount of effort to do another patch release, please don't bother just for us, especially since this is a fairly minor bug.) I don't think this warrants a 1.9.14p4 release so I'm currently planning to wait until 1.9.15. If it ends up affecting others I'll revisit that decision. Makes sense, I'll proceed with pushing p3 + this patch on our side then. Thanks again for the quick turnaround! |