Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/ntfstools
In directory usw-pr-cvs1:/tmp/cvs-serv13207
Modified Files:
ntfsfix.c
Log Message:
Fixed a braino the compiler didn't catch...
Index: ntfsfix.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/ntfstools/ntfsfix.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -U2 -r1.10 -r1.11
--- ntfsfix.c 2001/04/02 02:38:39 1.10
+++ ntfsfix.c 2001/04/02 23:02:41 1.11
@@ -133,5 +133,6 @@
/* Read $MFT and $MFTmirr. */
printf("Going to read $Mft... ");
- br = get_mft_records(vol, b1, 0, 4);
+ *(__u64*)&mref = FILE_$Mft;
+ br = get_mft_records(vol, b1, &mref, 4);
if (br != 4) {
puts(FAILED);
@@ -311,5 +312,5 @@
/* Write $Volume to $Mft. */
printf("Writing $Volume to $Mft... ");
- *(__u64*)&mref = 3ULL;
+ *(__u64*)&mref = FILE_$Volume;
br = put_mft_record(vol, b1 + (3 * mrs), &mref);
if (br != 1) {
|