Respect the `logging' flag.
Pointed out by: Nick Leuta MFC after: 3 days
This commit is contained in:
parent
4cd51076c5
commit
220223fdf4
@ -1615,7 +1615,7 @@ skip:
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user