diff options
author | yar <yar@FreeBSD.org> | 2005-01-19 10:49:40 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2005-01-19 10:49:40 +0000 |
commit | 2f9f83ffc750de5353df178df851d0a35df1f8a3 (patch) | |
tree | 3a383e5b299744e8926594c0f5de59564953073e | |
parent | e3e66eec0c7051bf431d437a86de9c341bef0600 (diff) | |
download | FreeBSD-src-2f9f83ffc750de5353df178df851d0a35df1f8a3.zip FreeBSD-src-2f9f83ffc750de5353df178df851d0a35df1f8a3.tar.gz |
Respect the `logging' flag.
Pointed out by: Nick Leuta
MFC after: 3 days
-rw-r--r-- | libexec/ftpd/ftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 51332db..6842714 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -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); |