ntfs_volume_check_hiberfile: relaxed too strict check: if the hiberfil.sys

header has garbage then the volume is not hibernated
master
szaka 2007-09-12 21:11:12 +00:00
parent a97c661efe
commit 64f9f0dc1a
1 changed files with 0 additions and 7 deletions

View File

@ -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: