Patch for openbsd-compat/readpassphrase.c missing _POSIX_VDISABLE
Dave Dykstra
dwd at bell-labs.com
Sat Oct 13 07:16:24 EST 2001
On Fri, Oct 12, 2001 at 11:47:38AM +1000, Damien Miller wrote:
> Subject: Re: Please test snapshots for 3.0 release
>
> Could everyone please test the latest snapshots as we will be making a
> new release soon.
>
> If you have any patches you would like us to consider, please resend
> them to the list ASAP.
Needed to compile at least on sunos 4.1.4.
- Dave Dykstra
--- openbsd-compat/readpassphrase.c.O Fri Oct 12 17:12:22 2001
+++ openbsd-compat/readpassphrase.c Fri Oct 12 17:11:16 2001
@@ -97,11 +97,13 @@
term.c_lflag &= ~ECHO;
}
#ifdef VSTATUS
+#ifdef _POSIX_VDISABLE
if (term.c_cc[VSTATUS] != _POSIX_VDISABLE) {
status = term.c_cc[VSTATUS];
term.c_cc[VSTATUS] = _POSIX_VDISABLE;
}
#endif
+#endif
(void)tcsetattr(input, _T_FLUSH, &term);
}
if (!(flags & RPP_ECHO_ON)) {
@@ -138,8 +140,10 @@
term.c_lflag |= ECHO;
}
#ifdef VSTATUS
+#ifdef _POSIX_VDISABLE
if (status != _POSIX_VDISABLE)
term.c_cc[VSTATUS] = status;
+#endif
#endif
(void)tcsetattr(input, _T_FLUSH, &term);
}
More information about the openssh-unix-dev
mailing list