From 3401a71f4e8f5178c2380ef2795869d16c033205 Mon Sep 17 00:00:00 2001 From: Daniel O'Callaghan Date: Wed, 21 May 1997 23:24:41 +0000 Subject: Tell the chroot()ed user that "access restrictions apply". --- libexec/ftpd/ftpd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libexec/ftpd') diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 5fb0e3aeb7bc..777b3e13661e 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ftpd.c,v 1.38 1997/04/29 12:42:07 davidn Exp $ + * $Id: ftpd.c,v 1.39 1997/05/10 18:58:15 davidn Exp $ */ #if 0 @@ -1090,7 +1090,12 @@ skip: syslog(LOG_INFO, "ANONYMOUS FTP LOGIN FROM %s, %s", remotehost, passwd); } else { + if (dochroot) + reply(230, "User %s logged in, access restrictions apply.", + pw->pw_name); + else reply(230, "User %s logged in.", pw->pw_name); + #ifdef SETPROCTITLE snprintf(proctitle, sizeof(proctitle), "%s: %s", remotehost, pw->pw_name); -- cgit v1.3