Respect the `logging' flag.

Pointed out by:	Nick Leuta
MFC after:	3 days
This commit is contained in:
Yaroslav Tykhiy 2005-01-19 10:49:40 +00:00
parent 4cd51076c5
commit 220223fdf4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140473

View File

@ -1615,7 +1615,7 @@ pass(char *passwd)
syslog(LOG_INFO, "FTP LOGIN FROM %s as %s",
remotehost, pw->pw_name);
}
if (guest || dochroot)
if (logging && (guest || dochroot))
syslog(LOG_INFO, "session root changed to %s", chrootdir);
#ifdef LOGIN_CAP
login_close(lc);