If the password prompt goes to stderr, then the trailing newline should
authorPeter Eisentraut
Sun, 15 Apr 2001 00:43:37 +0000 (00:43 +0000)
committerPeter Eisentraut
Sun, 15 Apr 2001 00:43:37 +0000 (00:43 +0000)
also go there.

src/bin/psql/common.c

index d8bd3e8d44d604e86260c0cdd2c020fb0e48397c..fa4844a699afd26a5599848768908d8494512f3a 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright 2000 by PostgreSQL Global Development Group
  *
- * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.31 2001/03/01 18:34:29 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.32 2001/04/15 00:43:37 petere Exp $
  */
 #include "postgres_fe.h"
 
@@ -208,7 +208,7 @@ simple_prompt(const char *prompt, int maxlen, bool echo)
    if (!echo)
    {
        tcsetattr(0, TCSADRAIN, &t_orig);
-       puts("");
+       fputs("\n", stderr);
    }
 #endif