ntfs_volume_check_hiberfile: relaxed too strict check: if the hiberfil.sys
header has garbage then the volume is not hibernatedmaster
parent
a97c661efe
commit
64f9f0dc1a
|
@ -717,13 +717,6 @@ static int ntfs_volume_check_hiberfile(ntfs_volume *vol)
|
|||
errno = EPERM;
|
||||
goto out;
|
||||
}
|
||||
for (i = 0; i < NTFS_HIBERFILE_HEADER_SIZE; i++) {
|
||||
if (buf[i]) {
|
||||
ntfs_log_error("Windows is hibernated, won't mount.\n");
|
||||
errno = EPERM;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
/* All right, all header bytes are zero */
|
||||
errno = 0;
|
||||
out:
|
||||
|
|
Loading…
Reference in New Issue