20010629
- (bal) Removed net_aton() since we don't use it any more
+ - (bal) Fixed _DISABLE_VPOSIX in readpassphrase.c.
20010628
- (djm) Sync openbsd-compat with -current libc
{
struct termios term;
char ch, *p, *end;
+#ifdef _POSIX_VDISABLE
u_char status;
+#endif
int echo, input, output;
sigset_t oset, nset;
/* Turn off echo if possible. */
echo = 0;
+#ifdef _POSIX_VDISABLE
status = _POSIX_VDISABLE;
+#endif
if (tcgetattr(input, &term) == 0) {
if (!(flags & RPP_ECHO_ON) && (term.c_lflag & ECHO)) {
echo = 1;
}
}
*p = '\0';
+#ifdef _POSIX_VDISABLE
if (echo || status != _POSIX_VDISABLE) {
+#else
+ if (echo) {
+#endif
if (echo) {
(void)write(output, "\n", 1);
term.c_lflag |= ECHO;