Bugzilla – Bug 873
Regression in 1.8.27 - cvtsudoers/test32: FAIL; possible buffering issue
Last modified: 2019-05-08 13:23:42 MDT
Sudo 1.8.25p1 passes its test suite just fine. 1.8.27 does not: cvtsudoers/test32: FAIL 0a1 > cvtsudoers: too many sudoers entries, maximum 10 116,117c117 < sudoHost: ALLcvtsudoers: too many sudoers entries, maximum 10 < --- > sudoHost: ALL This seems to me to be an issue with stdio buffering, since the error is printed at the very end of the output instead of the very beginning of the output as expected. This test was done on Adélie Linux, which uses the musl libc (not glibc).
Yes, this is a buffering issue. It is probably best to just test stdout and stderr separately.
Fixed by https://www.sudo.ws/repos/sudo/rev/e82a381f4f3d
Just tested this change locally and the test suite now passes. Thank you so much!
*** Bug 881 has been marked as a duplicate of this bug. ***