Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer BenAmram <omerbenamram@gmail.com>2019-06-20 00:02:15 +0300
committerGitHub <noreply@github.com>2019-06-20 00:02:15 +0300
commit024d7710e21cf9e2f433c320635804bc19b80a59 (patch)
tree7a3744189269bf34d9db98fafa01e3e4ac6561a7
parent7f590117e6a9b7496a5a8987c8ce69494eaad8fc (diff)
parentf05c4a11f082dc104456b78c12723c9ba3d3b4d7 (diff)
Merge pull request #14 from omerbenamram/bugfix/fix-ads-detection
Bugfix/fix ads detection
-rw-r--r--.gitignore3
-rw-r--r--CHANGELOG.md5
-rw-r--r--src/csv.rs7
3 files changed, 12 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 4dd8588..f50c861 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,7 @@
# Generated by Cargo
+
+.idea
+
# will have compiled files and executables
/target/
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b4b2131..42b4e09 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [0.4.4] - 2019-06-19
+
+### Fixed
+- Fixed a bug where `HasAlternateDataStreams` will miss entries with only a single named stream.
+
## [0.4.3] - 2019-06-06
### Added
diff --git a/src/csv.rs b/src/csv.rs
index dda9c88..fbe1b65 100644
--- a/src/csv.rs
+++ b/src/csv.rs
@@ -92,9 +92,10 @@ impl FlatMftEntryWithName {
let has_ads = entry_attributes
.iter()
- .filter(|a| a.header.type_code == MftAttributeType::DATA)
- .count()
- > 1;
+ .any(|a| {
+ a.header.type_code == MftAttributeType::DATA && a.header.name.len() > 0
+ });
+
FlatMftEntryWithName {
entry_id: entry.header.record_number,