summaryrefslogtreecommitdiffstats
path: root/contrib/opie/libopie/readpass.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-09-29 08:53:38 +0000
committerache <ache@FreeBSD.org>1997-09-29 08:53:38 +0000
commit620a15402ca567d1bb9f3ff04408b31d5195a26d (patch)
treebad95c33ccd79344b37c342113b585dc03504240 /contrib/opie/libopie/readpass.c
parente1721b38212f929793aa901252e7ce3b6e495d69 (diff)
downloadFreeBSD-src-620a15402ca567d1bb9f3ff04408b31d5195a26d.zip
FreeBSD-src-620a15402ca567d1bb9f3ff04408b31d5195a26d.tar.gz
Upgrade to 2.31
Diffstat (limited to 'contrib/opie/libopie/readpass.c')
-rw-r--r--contrib/opie/libopie/readpass.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/opie/libopie/readpass.c b/contrib/opie/libopie/readpass.c
index 4dc22e2..48b5699 100644
--- a/contrib/opie/libopie/readpass.c
+++ b/contrib/opie/libopie/readpass.c
@@ -1,7 +1,7 @@
/* readpass.c: The opiereadpass() library function.
-%%% portions-copyright-cmetz
-Portions of this software are Copyright 1996 by Craig Metz, All Rights
+%%% portions-copyright-cmetz-96
+Portions of this software are Copyright 1996-1997 by Craig Metz, All Rights
Reserved. The Inner Net License Version 2 applies to these portions of
the software.
You should have received a copy of the license with this software. If
@@ -14,6 +14,9 @@ License Agreement applies to this software.
History:
+ Modified by cmetz for OPIE 2.31. Use usleep() to delay after setting
+ the terminal attributes; this might help certain buggy
+ systems.
Modified by cmetz for OPIE 2.3. Use TCSAFLUSH always.
Modified by cmetz for OPIE 2.22. Replaced echo w/ flags.
Really use FUNCTION.
@@ -194,8 +197,16 @@ char *opiereadpass FUNCTION((buf, len, flags), char *buf AND int len AND int fla
}
#endif /* VEOF */
+#if HAVE_USLEEP
+ usleep(1);
+#endif /* HAVE_USLEEP */
+
if (tcsetattr(0, TCSAFLUSH, &attr))
goto error;
+
+#if HAVE_USLEEP
+ usleep(1);
+#endif /* HAVE_USLEEP */
}
#else /* unix */
erase[0] = CONTROL('H');
OpenPOWER on IntegriCloud