Skip to content

Commit

Permalink
Correction of 5852.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Jul 25, 2021
1 parent 7ae1757 commit eecbf9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------------------------------------------------------------------
drkns 25.07.2021 22:56:46 +0100 - build 5857

1. Correction of 5852.1.

--------------------------------------------------------------------------------
drkns 25.07.2021 20:02:30 +0100 - build 5856

Expand Down
6 changes: 6 additions & 0 deletions far/platform.fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ namespace os::fs
if (FindData.AllocationSize)
return;

if (!FindData.FileSize)
return;

if (flags::check_any(FindData.Attributes, FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_REPARSE_POINT))
return;

static const auto IsWeirdCompressionAvailable = IsWindows10OrGreater();
if (!IsWeirdCompressionAvailable && !flags::check_any(FindData.Attributes, FILE_ATTRIBUTE_COMPRESSED | FILE_ATTRIBUTE_SPARSE_FILE))
return;
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5856
5857

0 comments on commit eecbf9d

Please sign in to comment.