Skip to content

Commit

Permalink
fix failing test on net8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed May 15, 2024
1 parent 4b15d4d commit ca24658
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.OtherRead | UnixFileMode.GroupWrite) & unixFileMode) == 0);

Check warning on line 111 in Snowflake.Data/Configuration/EasyLoggingConfigParser.cs

View check run for this annotation

Codecov / codecov/patch

Snowflake.Data/Configuration/EasyLoggingConfigParser.cs#L110-L111

Added lines #L110 - L111 were not covered by tests
#else
var entitlements = FileAccessPermissions.GroupWrite | FileAccessPermissions.OtherWrite;
var hasPermissions = !_unixOperations.CheckFileHasAnyOfPermissions(filePath, entitlements);
Expand Down

0 comments on commit ca24658

Please sign in to comment.