]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vidcontrol: skip invalid video modes returned by vt(4)
authorEd Maste <emaste@FreeBSD.org>
Mon, 20 Apr 2015 17:43:55 +0000 (17:43 +0000)
committerEd Maste <emaste@FreeBSD.org>
Mon, 20 Apr 2015 17:43:55 +0000 (17:43 +0000)
commit16028f6a5a455be07ab304d2512fa982c72524b1
treed44a6faf01fbfcc8bbf7b5d1c19b4e27befec2a3
parent867073d7fbbaf90bf81f6f64ba19cc98f977b899
vidcontrol: skip invalid video modes returned by vt(4)

vt(4) has a stub CONS_MODEINFO ioctl that does not provide any data
but returns success. This needs to be fixed in the kernel, but address
it in vidcontrol(1) as well in case it's run on an older kernel.

Reviewed by: bde
Sponsored by: The FreeBSD Foundation
usr.sbin/vidcontrol/vidcontrol.c