ntfs: make sure our confidence is higher then the intel partition add-on
This as the intel partition addon just does a very weak test, and the NTFS test is much safer. This prevents NTFS filesystems that have a valid boot sector signature but no partition table, from being picked up by the intel partition table add-on instead of the ntfs add-on. Patch provided by markh, thanks!
This commit is contained in:
parent
5308f23025
commit
92ab471c49
@ -274,7 +274,9 @@ fs_identify_partition(int fd, partition_data *partition, void **_cookie)
|
||||
|
||||
*_cookie = cookie;
|
||||
|
||||
return 0.8f;
|
||||
// Make sure we return a higher number than the intel partition check
|
||||
// as this one is more accurate.
|
||||
return 0.82f;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user