]> git.hungrycats.org Git - linux/commit
[PATCH] Allow unimap change on non fg console
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:53:02 +0000 (05:53 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:53:02 +0000 (05:53 -0800)
commita4b05bb1936d15d0dd7ee482b7ce7dd4766a6988
treec3697238edf93a4c951347c9efc16e994c03894d
parente86ff3c7f47b6aa3eb59fd7b1b6a4f9e3a1e5c76
[PATCH] Allow unimap change on non fg console

From: Kurt Garloff <garloff@suse.de>

The comment in front of vt_ioctl() reads
/*
 * We handle the console-specific ioctl's here.  We allow the
 * capability to modify any console, not just the fg_console.=20
 */

Unfortunately, this does not apply to PIO_UNIMAPCLR, nor
GIO_/PIO_UNIMAP. They always operate on the current foreground
console, which is inconsistent at least. For most ioctls, the
comment is applicable.

It also causes problems, as setfont can't do the full job on
the non-fg consoles. (OK, our setfont is slightly changed to
even try it ... as you know.)

The attached patch does fix this.

I have a similar patch for 2.4, but it never got merged :-(
because not many people seem to care and I submitted in the middle
of the 2.4 series ...
It has been in UnitedLinux/SUSE kernels for ages, though.
drivers/char/vt_ioctl.c