[PATCH] setconsole: open console for writing rather than reading
Denys Vlasenko
vda.linux at googlemail.com
Sat May 28 23:52:04 UTC 2011
On Thursday 26 May 2011 17:51, Peter Korsgaard wrote:
> The console passed to TIOCCONS has to be writable, otherwise future
> console writes will fail.
>
> This presumably used to work, but in current kernels (see
> drivers/tty/tty_io.c:redirected_tty_write) console writes are sent to
> vfs_write(device), which checks if the device is writable. A quick look
> in the linux git history doesn't show any recent changes to either tty_io
> or vfs_write.
>
> Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
Applied, thanks!
--
vda
More information about the busybox
mailing list