Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
d0eafd7f
Commit
d0eafd7f
authored
Dec 12, 2010
by
Quanah Gibson-Mount
Browse files
ITS#6702
parent
a5cad3f1
Changes
2
Show whitespace changes
Inline
Side-by-side
CHANGES
View file @
d0eafd7f
...
...
@@ -6,6 +6,7 @@ OpenLDAP 2.4.24 Engineering
Fixed libldap GnuTLS hang on socket close (ITS#6673)
Fixed libldap sasl partial write handling (ITS#6639)
Fixed libldap url parsing with NULL host (ITS#6653)
Fixed liblutil getpass prompts (ITS#6702)
Fixed ldapsearch segfault with deref (ITS#6638)
Fixed slapd acl parsing overflow (ITS#6611)
Fixed slapd modify to return actual error (ITS#6581)
...
...
libraries/liblutil/getpass.c
View file @
d0eafd7f
...
...
@@ -102,8 +102,8 @@ lutil_getpass( const char *prompt )
#else
fi
=
stdin
;
#endif
fprintf
(
std
out
,
"%s"
,
prompt
);
fflush
(
std
out
);
fprintf
(
std
err
,
"%s"
,
prompt
);
fflush
(
std
err
);
i
=
0
;
while
(
(
c
=
getc
(
fi
))
!=
EOF
&&
c
!=
'\n'
&&
c
!=
'\r'
)
if
(
i
<
(
sizeof
(
pbuf
)
-
1
)
)
...
...
@@ -111,8 +111,8 @@ lutil_getpass( const char *prompt )
#if defined(HAVE_TERMIOS_H) || defined(HAVE_SGTTY_H)
/* tidy up */
if
(
fi
!=
stdin
)
{
fprintf
(
std
out
,
"
\n
"
);
fflush
(
std
out
);
fprintf
(
std
err
,
"
\n
"
);
fflush
(
std
err
);
SETFLAGS
(
ttyb
,
flags
);
if
(
SETATTR
(
fileno
(
fi
),
&
ttyb
)
<
0
)
perror
(
"SETATTR"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment