[BusyBox] [PATCH] make chvt work

Glenn McGrath bug1 at optushome.com.au
Fri Aug 29 14:49:26 UTC 2003


Vodz, i think you may have introduced a bug in /busybox/libbb/get_console.c version 1.4

Change from

if (tty_name) {
	if (-1 == (fd = open_a_console(tty_name))) {
		return -1;
	} else {
		return fd;
	}
}
<other code>


To

if (-1 == (fd = open_a_console("/dev/console")))
	return -1;
else
	return fd;
<other code>


In the second case <other code> is never reached.



More information about the busybox mailing list