Commit d0eafd7f authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6702

parent a5cad3f1
...@@ -6,6 +6,7 @@ OpenLDAP 2.4.24 Engineering ...@@ -6,6 +6,7 @@ OpenLDAP 2.4.24 Engineering
Fixed libldap GnuTLS hang on socket close (ITS#6673) Fixed libldap GnuTLS hang on socket close (ITS#6673)
Fixed libldap sasl partial write handling (ITS#6639) Fixed libldap sasl partial write handling (ITS#6639)
Fixed libldap url parsing with NULL host (ITS#6653) Fixed libldap url parsing with NULL host (ITS#6653)
Fixed liblutil getpass prompts (ITS#6702)
Fixed ldapsearch segfault with deref (ITS#6638) Fixed ldapsearch segfault with deref (ITS#6638)
Fixed slapd acl parsing overflow (ITS#6611) Fixed slapd acl parsing overflow (ITS#6611)
Fixed slapd modify to return actual error (ITS#6581) Fixed slapd modify to return actual error (ITS#6581)
......
...@@ -102,8 +102,8 @@ lutil_getpass( const char *prompt ) ...@@ -102,8 +102,8 @@ lutil_getpass( const char *prompt )
#else #else
fi = stdin; fi = stdin;
#endif #endif
fprintf(stdout, "%s", prompt); fprintf(stderr, "%s", prompt);
fflush(stdout); fflush(stderr);
i = 0; i = 0;
while ( (c = getc(fi)) != EOF && c != '\n' && c != '\r' ) while ( (c = getc(fi)) != EOF && c != '\n' && c != '\r' )
if ( i < (sizeof(pbuf)-1) ) if ( i < (sizeof(pbuf)-1) )
...@@ -111,8 +111,8 @@ lutil_getpass( const char *prompt ) ...@@ -111,8 +111,8 @@ lutil_getpass( const char *prompt )
#if defined(HAVE_TERMIOS_H) || defined(HAVE_SGTTY_H) #if defined(HAVE_TERMIOS_H) || defined(HAVE_SGTTY_H)
/* tidy up */ /* tidy up */
if (fi != stdin) { if (fi != stdin) {
fprintf(stdout, "\n"); fprintf(stderr, "\n");
fflush(stdout); fflush(stderr);
SETFLAGS( ttyb, flags ); SETFLAGS( ttyb, flags );
if (SETATTR(fileno(fi), &ttyb) < 0) if (SETATTR(fileno(fi), &ttyb) < 0)
perror("SETATTR"); perror("SETATTR");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment