ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit 29bc0ce1303509c0ef39c775871932aafae1a127
parent d04d030367b9e31da507b87b815d531436640187
Author: sin <sin@2f30.org>
Date:   Mon, 30 Jun 2014 16:55:00 +0100

No need to skip stdin in chvt(1)

Diffstat:
Mchvt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chvt.c b/chvt.c @@ -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)