File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 22
22
*
23
23
*
24
24
* IDENTIFICATION
25
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.149 2000/06/02 15:57:38 momjian Exp $
25
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.150 2000/06/09 12:33:42 momjian Exp $
26
26
*
27
27
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
28
28
*
@@ -490,11 +490,9 @@ prompt_for_password(char *username, char *password)
490
490
491
491
#ifdef HAVE_TERMIOS_H
492
492
struct termios t_orig ,
493
- t ;
494
-
495
493
#endif
496
494
497
- printf ( "Username: " );
495
+ fprintf ( stderr , "Username : ");
498
496
fgets (username , 100 , stdin );
499
497
length = strlen (username );
500
498
/* skip rest of the line */
@@ -508,7 +506,7 @@ prompt_for_password(char *username, char *password)
508
506
if (length > 0 && username [length - 1 ] == '\n' )
509
507
username [length - 1 ] = '\0' ;
510
508
511
- printf ( "Password: " );
509
+ fprintf ( stderr , "Password: " );
512
510
#ifdef HAVE_TERMIOS_H
513
511
tcgetattr (0 , & t );
514
512
t_orig = t ;
@@ -532,7 +530,7 @@ prompt_for_password(char *username, char *password)
532
530
if (length > 0 && password [length - 1 ] == '\n' )
533
531
password [length - 1 ] = '\0' ;
534
532
535
- printf ( "\n\n" );
533
+ fprintf ( stderr , "\n\n" );
536
534
}
537
535
538
536
You can’t perform that action at this time.
0 commit comments