=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/ttyin.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/less/ttyin.c 2015/11/06 15:50:33 1.8 +++ src/usr.bin/less/ttyin.c 2015/11/09 02:59:06 1.9 @@ -31,7 +31,7 @@ * which in Unix is usually attached to the screen, * but also usually lets you read from the keyboard. */ - tty = open("/dev/tty", OPEN_READ); + tty = open("/dev/tty", O_RDONLY); if (tty < 0) tty = 2; }