summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1997-05-21 23:24:41 +0000
committerdanny <danny@FreeBSD.org>1997-05-21 23:24:41 +0000
commitdca03b187765175b5b68622eb7dcea708aa15065 (patch)
tree301106eb1e27dcbb1e995eee1dea60fc99b2aad1 /libexec/ftpd
parent9d49e3ca10793934650b1b143aac73511eaea0d7 (diff)
downloadFreeBSD-src-dca03b187765175b5b68622eb7dcea708aa15065.zip
FreeBSD-src-dca03b187765175b5b68622eb7dcea708aa15065.tar.gz
Tell the chroot()ed user that "access restrictions apply".
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 5fb0e3a..777b3e1 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);
OpenPOWER on IntegriCloud