Fix -s option.
PR: bin/13799
This commit is contained in:
parent
6837f60c8e
commit
a0d3b21c88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51393
@ -386,7 +386,7 @@ set_console(char *arg)
|
||||
}
|
||||
|
||||
n = atoi(arg);
|
||||
if (n < 1 || n > 12) {
|
||||
if (n < 1 || n > 16) {
|
||||
warnx("console number out of range");
|
||||
} else if (ioctl(0, VT_ACTIVATE, (caddr_t) (long) n) == -1)
|
||||
warn("ioctl(VT_ACTIVATE)");
|
||||
|
Loading…
Reference in New Issue
Block a user