From 64f9f0dc1a7ed9766dac431b1f300536c394ec91 Mon Sep 17 00:00:00 2001 From: szaka Date: Wed, 12 Sep 2007 21:11:12 +0000 Subject: [PATCH] ntfs_volume_check_hiberfile: relaxed too strict check: if the hiberfil.sys header has garbage then the volume is not hibernated --- libntfs-3g/volume.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libntfs-3g/volume.c b/libntfs-3g/volume.c index 8c53b69a..1a147dbb 100644 --- a/libntfs-3g/volume.c +++ b/libntfs-3g/volume.c @@ -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: