Skip to content

Commit

Permalink
fix remaining dotnet 8.0 test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed Jul 10, 2024
1 parent 933d750 commit c970a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Snowflake.Data/Configuration/EasyLoggingConfigParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c970a1b

Please sign in to comment.