From 28ea8abf2875c289ecc7c0c806ee25c908baa237 Mon Sep 17 00:00:00 2001 From: James Perkins Date: Mon, 27 Mar 2017 16:51:26 -0700 Subject: [PATCH] [LOGMGR-149] Skip the permissions check on the syslog handler when the output stream is not explicitly being set. --- src/main/java/org/jboss/logmanager/handlers/SyslogHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/logmanager/handlers/SyslogHandler.java b/src/main/java/org/jboss/logmanager/handlers/SyslogHandler.java index 45668933..5ab220e5 100644 --- a/src/main/java/org/jboss/logmanager/handlers/SyslogHandler.java +++ b/src/main/java/org/jboss/logmanager/handlers/SyslogHandler.java @@ -1006,6 +1006,7 @@ public void setProtocol(final Protocol type) { * @param out the output stream to write to */ public void setOutputStream(final OutputStream out) { + checkAccess(this); setOutputStream(out, true); } @@ -1037,7 +1038,6 @@ public void setTruncate(final boolean truncate) { } private void setOutputStream(final OutputStream out, final boolean outputStreamSet) { - checkAccess(this); OutputStream oldOut = null; boolean ok = false; try {