From 5e4341c0ac6ba9e04a62b7c423f2f4f1c065cc92 Mon Sep 17 00:00:00 2001 From: Yura Pakhuchiy Date: Fri, 14 Sep 2007 13:09:14 +0300 Subject: [PATCH] Do not refuse mount if there is garbadge in hiberfil.sys file. (Szabolcs Szakacsits) --- libntfs/volume.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libntfs/volume.c b/libntfs/volume.c index bfef1117..b705c924 100644 --- a/libntfs/volume.c +++ b/libntfs/volume.c @@ -691,7 +691,7 @@ static int ntfs_volume_check_hiberfile(ntfs_volume *vol) { ntfs_inode *ni; ntfs_attr *na = NULL; - int i, bytes_read, ret = -1; + int bytes_read, ret = -1; char *buf = NULL; ni = ntfs_hiberfile_open(vol); @@ -727,14 +727,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_debug("Windows is hibernated, won't mount!\n"); - errno = EPERM; - goto out; - } - } - /* All right, all header bytes are zero */ ret = 0; out: if (na)