diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2014-11-10 14:16:23 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2014-11-10 14:16:23 +0000 |
commit | dad9f07b1079ecf237c33dcee73b4eaad348d236 (patch) | |
tree | a4ae2c3507364a38748e68483b9293d04a15b01b /usr.sbin | |
parent | 2bd5fc1b18d088d7792e0b7885063e994064b778 (diff) |
Don't attempt to open log files when using syslog, as we are not going to
use them.
ok reyk@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/httpd/logger.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/httpd/logger.c b/usr.sbin/httpd/logger.c index 665db759852..8e7784dbb19 100644 --- a/usr.sbin/httpd/logger.c +++ b/usr.sbin/httpd/logger.c @@ -1,4 +1,4 @@ -/* $OpenBSD: logger.c,v 1.5 2014/08/06 12:56:58 reyk Exp $ */ +/* $OpenBSD: logger.c,v 1.6 2014/11/10 14:16:22 beck Exp $ */ /* * Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org> @@ -194,6 +194,9 @@ logger_open(struct server *srv, struct server_config *srv_conf, void *arg) { struct log_file *log, *logfile = NULL, *errfile = NULL; + if (srv_conf->flags & SRVFLAG_SYSLOG) + return(0); + /* disassociate */ srv_conf->logaccess = srv_conf->logerror = NULL; |