From 387cc054fe1f563ffdfc7af173af1ecbdaf9b5f1 Mon Sep 17 00:00:00 2001 From: pst Date: Thu, 27 Oct 1994 19:14:39 +0000 Subject: [PATCH] Printing out /etc/motd when a ftp login occurs is a security hole (as is printing out a version number at the telnet login banner). Don't print out /etc/motd when people login, instead if present, print out /etc/ftpmotd. It looks like 4.4lite2 has done something similar (perhaps for different reasons) because /etc/motd no longer shows up on vangogh. Folks who like the old behavior can create a symbolic link to motd. --- libexec/ftpd/pathnames.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libexec/ftpd/pathnames.h b/libexec/ftpd/pathnames.h index 2a50063736e3..7d36bcd3d084 100644 --- a/libexec/ftpd/pathnames.h +++ b/libexec/ftpd/pathnames.h @@ -35,6 +35,5 @@ #include -#define _PATH_FTPUSERS "/etc/ftpusers" #define _PATH_FTPWELCOME "/etc/ftpwelcome" -#define _PATH_FTPLOGINMESG "/etc/motd" +#define _PATH_FTPLOGINMESG "/etc/ftpmotd"