Tell the chroot()ed user that "access restrictions apply".

This commit is contained in:
Daniel O'Callaghan 1997-05-21 23:24:41 +00:00
parent 61b005296f
commit 3401a71f4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25986

View File

@ -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);