michael@stb.UUCP (Michael) (02/13/88)
According to the man page, getpass() will read from /dev/tty, or if that cannot be opened, stdin. Instead, if /dev/tty cannot be opened, it simply returns. At least this is the case if the process has a terminal but /dev/tty can't be opened Michael
gordon@sneaky.UUCP (02/18/88)
The System III/System V branch of UNIX evolution has a version of getpass() that opens /dev/tty, and returns NULL if it cannot be opened. The V7/2BSD/4BSD branch uses standard input if /dev/tty cannot be opened. Since the earlier version of Xenix was V7-based, and the current one is System-III-based, it looks like the code is correct and the documentation is out of date. Gordon Burditt ...!ihnp4!sys1!sneaky!gordon