xvinfo exits with error in normal operation
Submitted by Reuben Thomas
Assigned to Xorg Project Team
Description
Running simply "xvinfo" causes the program to print the information it should, then exit with code 1, i.e. an error code.
This is not documented, and causes programs that call xvinfo to think there's a problem when there isn't.
The fix would seem to be as simple as changing "return 1" to "return 0" at the bottom of xvinfo.c.
Looking at other programs in the x11-utils suite, they seem to return 0 (as they should) on normal exit, so as far as I can tell this is a one-off error, not an undocumented convention.
Version: git