aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-04-14 16:38:13 +0000
committerGunter Knauf <gk@gknw.de>2007-04-14 16:38:13 +0000
commitc60b52ab430093650ca6e7e7b43d5e072bccbe62 (patch)
tree47b3134b007d7e28c881479321fb31f7cfe2afd8 /src
parent71a0d50f48ea6b03cbd76c776f5ffbc0bb0ba30b (diff)
use system-own getpassword() function on NetWare.
Diffstat (limited to 'src')
-rw-r--r--src/getpass.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/getpass.c b/src/getpass.c
index 6db1e8477..0fb575ea7 100644
--- a/src/getpass.c
+++ b/src/getpass.c
@@ -124,6 +124,16 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
#define DONE
#endif /* WIN32 */
+#ifdef NETWARE
+/* NetWare implementation */
+#include <screen.h>
+char *getpass_r(const char *prompt, char *buffer, size_t buflen)
+{
+ return(getpassword(prompt, buffer, buflen));
+}
+#define DONE
+#endif /* WIN32 */
+
#ifndef DONE /* not previously provided */
#ifdef HAVE_TERMIOS_H