diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2001-04-15 00:43:37 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2001-04-15 00:43:37 +0000 |
commit | 15a6cd0091455cafe5fe471f61c94b8fc4b787f9 (patch) | |
tree | fbb3dcfd1a8879e626a173d90a77ae9cf4923737 /src | |
parent | eb1b1643177b27b9f932a256226a0125bc230d55 (diff) | |
download | postgresql-15a6cd0091455cafe5fe471f61c94b8fc4b787f9.tar.gz postgresql-15a6cd0091455cafe5fe471f61c94b8fc4b787f9.zip |
If the password prompt goes to stderr, then the trailing newline should
also go there.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index d8bd3e8d44d..fa4844a699a 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -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 |