From ca2465884245bbcc3fac6f5a51cdc66341411b91 Mon Sep 17 00:00:00 2001 From: Steven Lizano Date: Wed, 15 May 2024 13:52:29 -0600 Subject: [PATCH] fix failing test on net8.0 --- Snowflake.Data/Configuration/EasyLoggingConfigParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snowflake.Data/Configuration/EasyLoggingConfigParser.cs b/Snowflake.Data/Configuration/EasyLoggingConfigParser.cs index f11dabdd2..01b63b8a4 100644 --- a/Snowflake.Data/Configuration/EasyLoggingConfigParser.cs +++ b/Snowflake.Data/Configuration/EasyLoggingConfigParser.cs @@ -108,7 +108,7 @@ private void CheckIfValidPermissions(FileStream fileStream, string filePath) #if NET8_0_OR_GREATER var unixFileMode = File.GetUnixFileMode(fileStream.SafeFileHandle); - var hasPermissions = ((UnixFileMode.OtherRead | UnixFileMode.GroupWrite) & unixFileMode) == 0; + var hasPermissions = !(((UnixFileMode.OtherRead | UnixFileMode.GroupWrite) & unixFileMode) == 0); #else var entitlements = FileAccessPermissions.GroupWrite | FileAccessPermissions.OtherWrite; var hasPermissions = !_unixOperations.CheckFileHasAnyOfPermissions(filePath, entitlements);