change open of /dev/tty to "r+" rather than "w+". if /dev/tty is
authorchuck <chuck@openbsd.org>
Wed, 4 Dec 1996 23:02:13 +0000 (23:02 +0000)
committerchuck <chuck@openbsd.org>
Wed, 4 Dec 1996 23:02:13 +0000 (23:02 +0000)
commit2522059de3de3c711c601f00b9cf161c5c9d6e8a
tree1d4e10a73cff41543346974307b08c44538f7bd5
parent0b08dfee68c70bfcabf7c145fc43e347a431b565
change open of /dev/tty to "r+" rather than "w+".   if /dev/tty is
missing there is no point creating a plain text file to replace it.
(related to a problem jkatz had)
lib/libc/gen/getpass.c