summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-10-17 17:46:00 +0000
committerache <ache@FreeBSD.org>1996-10-17 17:46:00 +0000
commit4a74559d46ea8d8b82a3d3d3a21cde626691a3fc (patch)
treedbd5a5c95e5e441718d8472a6851c7894758bb83 /libexec/ftpd
parent3632b36dfaf61718502b410208cc689c9be5fa7d (diff)
downloadFreeBSD-src-4a74559d46ea8d8b82a3d3d3a21cde626691a3fc.zip
FreeBSD-src-4a74559d46ea8d8b82a3d3d3a21cde626691a3fc.tar.gz
Oops, fix my previous commit, now tell user his s/key parameters
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/skey-stuff.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ftpd/skey-stuff.c b/libexec/ftpd/skey-stuff.c
index 06a227d..2fe3f56 100644
--- a/libexec/ftpd/skey-stuff.c
+++ b/libexec/ftpd/skey-stuff.c
@@ -1,6 +1,6 @@
/* Author: Wietse Venema, Eindhoven University of Technology.
*
- * $Id: skey-stuff.c,v 1.3 1996/09/22 21:53:34 wosch Exp $
+ * $Id: skey-stuff.c,v 1.4 1996/10/17 17:06:04 ache Exp $
*/
#include <stdio.h>
@@ -23,7 +23,8 @@ int *sflag;
/* Display s/key challenge where appropriate. */
*sflag = skeychallenge(&skey, username, buf);
- sprintf(buf, "%s required for %s.",
- pwok ? "Password" : "S/Key password", name);
+ if (*sflag)
+ sprintf(buf, "%s required for %s.",
+ pwok ? "Password" : "S/Key password", name);
return (buf);
}
OpenPOWER on IntegriCloud