Skip site navigation (1) Skip section navigation (2)

pgsql: Avoid trying to open /dev/tty on Win32.

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid trying to open /dev/tty on Win32.
Date: 2006-03-03 23:49:12
Message-ID: 20060303234912.7CA359DC810@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
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.1.X.

Robert Kinberg

Modified Files:
--------------
    pgsql/src/bin/psql:
        command.c (r1.161 -> r1.162)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/command.c.diff?r1=1.161&r2=1.162)
    pgsql/src/port:
        sprompt.c (r1.12 -> r1.13)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/sprompt.c.diff?r1=1.12&r2=1.13)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2006-03-03 23:49:21
Subject: pgsql: Avoid trying to open /dev/tty on Win32.
Previous:From: Tom LaneDate: 2006-03-03 23:38:30
Subject: pgsql: Improve pg_dump and psql to use libpq's newer COPY support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group