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);