Avoid trying to open /dev/tty on Win32. Some Win32 systems have
authorBruce Momjian <[email protected]>
Fri, 3 Mar 2006 23:54:52 +0000 (23:54 +0000)
committerBruce Momjian <[email protected]>
Fri, 3 Mar 2006 23:54:52 +0000 (23:54 +0000)
commitc9218e6bcf71b15dda61bda8c20561e3763f696b
tree9314e18a3bb80d3c3d71009d2c81d9b1722b2f41
parentc8cf8a678462238e9792535fa722a599c9c878ee
Avoid trying to open /dev/tty on Win32.  Some Win32 systems have
/dev/tty, but it isn't a device file and doesn't work as expected.

This fixes a known bug where psql does not prompt for a password on some
Win32 systems.

Backpatch to 8.0.X too.

Robert Kinberg
src/bin/psql/command.c
src/port/sprompt.c