From fe3bf9d56533614864385ab7e35c29bf702b7e56 Mon Sep 17 00:00:00 2001 From: Ceki Gulcu Date: Fri, 6 Sep 2024 21:29:16 +0200 Subject: [PATCH] os.name property is expected to be Mac OS X on Apple computers Signed-off-by: Ceki Gulcu --- logback-core/src/main/java/ch/qos/logback/core/util/EnvUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/logback-core/src/main/java/ch/qos/logback/core/util/EnvUtil.java b/logback-core/src/main/java/ch/qos/logback/core/util/EnvUtil.java index 68a4091fa1..954b44ad93 100644 --- a/logback-core/src/main/java/ch/qos/logback/core/util/EnvUtil.java +++ b/logback-core/src/main/java/ch/qos/logback/core/util/EnvUtil.java @@ -128,6 +128,7 @@ static public boolean isJaninoAvailable() { public static boolean isMacOs() { String os = System.getProperty("os.name"); + // expected value is "Mac OS X" return os.toLowerCase().contains("mac"); }