No need to skip stdin in chvt(1)

This commit is contained in:
sin 2014-06-30 16:55:00 +01:00
parent d04d030367
commit 29bc0ce130

2
chvt.c
View File

@ -41,7 +41,7 @@ main(int argc, char *argv[])
n = estrtol(argv[1], 10);
for (i = 0; i < LEN(vts); i++) {
fd = open(vts[i], O_RDONLY);
if (fd < 1)
if (fd < 0)
continue;
c = 0;
if (ioctl(fd, KDGKBTYPE, &c) == 0)