From dc4f5b0a496e435387fe2156bcf60c307058dd08 Mon Sep 17 00:00:00 2001 From: Steven Lizano Date: Wed, 15 May 2024 16:25:07 -0600 Subject: [PATCH] fix remaining dotnet 8.0 test --- 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 01b63b8a4..b247037ba 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.GroupWrite | UnixFileMode.OtherWrite) & unixFileMode) != 0); #else var entitlements = FileAccessPermissions.GroupWrite | FileAccessPermissions.OtherWrite; var hasPermissions = !_unixOperations.CheckFileHasAnyOfPermissions(filePath, entitlements);