=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/ttyin.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/less/ttyin.c 2015/11/09 03:09:19 1.11 --- src/usr.bin/less/ttyin.c 2019/06/28 13:35:01 1.12 *************** *** 32,38 **** * but also usually lets you read from the keyboard. */ tty = open("/dev/tty", O_RDONLY); ! if (tty < 0) tty = STDERR_FILENO; } --- 32,38 ---- * but also usually lets you read from the keyboard. */ tty = open("/dev/tty", O_RDONLY); ! if (tty == -1) tty = STDERR_FILENO; }