summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libexec/ftpd/ftpd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index e4aa5ed..c2fff41 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -972,8 +972,11 @@ user(name)
strncpy(curname, name, sizeof(curname)-1);
#ifdef USE_PAM
/* XXX Kluge! The conversation mechanism needs to be fixed. */
- opiechallenge(&opiedata, name, opieprompt);
- reply(331, "[ %s ] Password required for %s.", opieprompt, name);
+ if (opiechallenge(&opiedata, name, opieprompt) == 0)
+ reply(331, "Response to %s required for %s.",
+ opieprompt, name);
+ else
+ reply(331, "Password required for %s.", name);
#else
reply(331, "Password required for %s.", name);
#endif
OpenPOWER on IntegriCloud