2222 *
2323 *
2424 * IDENTIFICATION
25- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.150 2000/06/09 12:33:42 momjian Exp $
25+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.151 2000/06/10 03:53:59 tgl Exp $
2626 *
2727 * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2828 *
@@ -490,9 +490,11 @@ prompt_for_password(char *username, char *password)
490490
491491#ifdef HAVE_TERMIOS_H
492492struct termios t_orig ,
493+ t ;
493494#endif
494495
495496fprintf (stderr ,"Username: " );
497+ fflush (stderr );
496498fgets (username ,100 ,stdin );
497499length = strlen (username );
498500/* skip rest of the line */
@@ -506,13 +508,14 @@ prompt_for_password(char *username, char *password)
506508if (length > 0 && username [length - 1 ]== '\n' )
507509username [length - 1 ]= '\0' ;
508510
509- fprintf (stderr ,"Password: " );
510511#ifdef HAVE_TERMIOS_H
511512tcgetattr (0 ,& t );
512513t_orig = t ;
513514t .c_lflag &= ~ECHO ;
514515tcsetattr (0 ,TCSADRAIN ,& t );
515516#endif
517+ fprintf (stderr ,"Password: " );
518+ fflush (stderr );
516519fgets (password ,100 ,stdin );
517520#ifdef HAVE_TERMIOS_H
518521tcsetattr (0 ,TCSADRAIN ,& t_orig );