aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1994-10-19 00:03:45 +0000
committerPaul Traina <pst@FreeBSD.org>1994-10-19 00:03:45 +0000
commit2ddadf840c8d36ddbe8f3ebe10e718016126e00f (patch)
tree18581614639f8a987cdf2526bd645ecfdd38abd3 /libexec
parent1c423e89edcc640179d4ef310390bb3d6ab5a302 (diff)
downloadsrc-2ddadf840c8d36ddbe8f3ebe10e718016126e00f.tar.gz
src-2ddadf840c8d36ddbe8f3ebe10e718016126e00f.zip
Include most of the logdaemon v4.4 S/key changes
Notes
Notes: svn path=/head/; revision=3702
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/Makefile4
-rw-r--r--libexec/ftpd/ftpcmd.y2
-rw-r--r--libexec/ftpd/skey-stuff.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/libexec/ftpd/Makefile b/libexec/ftpd/Makefile
index 396deee0d729..e1e5be2b3658 100644
--- a/libexec/ftpd/Makefile
+++ b/libexec/ftpd/Makefile
@@ -6,8 +6,8 @@ SRCS= ftpd.c ftpcmd.c logwtmp.c popen.c skey-stuff.c
CFLAGS+=-DSETPROCTITLE -DSKEY
-LDADD= -lcrypt -lskey
-DPADD= ${LIBCRYPT} ${LIBSKEY}
+LDADD= -lcrypt -lskey -lmd
+DPADD= ${LIBCRYPT} ${LIBSKEY} ${LIBMD}
CLEANFILES+=ftpcmd.c y.tab.h
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index 6ec3d252545a..5c090e35fae7 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -951,7 +951,7 @@ yylex()
upper(cbuf);
p = lookup(cmdtab, cbuf);
cbuf[cpos] = c;
- if (p != 0) {
+ if (guest != 0 && p != 0) {
if (p->implemented == 0) {
nack(p->name);
longjmp(errcatch,0);
diff --git a/libexec/ftpd/skey-stuff.c b/libexec/ftpd/skey-stuff.c
index fdec650bcef0..5c34b9b7395d 100644
--- a/libexec/ftpd/skey-stuff.c
+++ b/libexec/ftpd/skey-stuff.c
@@ -18,6 +18,7 @@ int pwok;
/* Display s/key challenge where appropriate. */
if (pwd == 0 || skeychallenge(&skey, pwd->pw_name, buf) != 0)
- sprintf(buf, "Password required for %s.", name);
+ sprintf(buf, "%s required for %s.",
+ pwok ? "Password" : "S/Key password", name);
return (buf);
}