| Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv11525/libntfs
Modified Files:
	attrib.c 
Log Message:
No more bugs (known) except issue with last sector not being writable when it is
an odd number.
Index: attrib.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/attrib.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -U2 -r1.15 -r1.16
--- attrib.c	2001/06/09 00:25:55	1.15
+++ attrib.c	2001/06/13 00:40:49	1.16
@@ -747,10 +747,16 @@
 			 * can investigate it further! (AIA)
 			 */
-			if (deltaxcn == -1)
+			if (deltaxcn == -1LL)
 				fprintf(stderr, "DEBUG Linux-NTFS: lcn delta "
 						"== -1\n");
-			else if (lcn == -1)
+			else if (lcn == -1LL)
 				fprintf(stderr, "DEBUG Linux-NTFS: lcn "
 						"== -1\n");
+			if (deltaxcn < -1LL)
+				fprintf(stderr, "DEBUG Linux-NTFS: lcn delta "
+						"< -1\n");
+			else if (lcn < -1LL)
+				fprintf(stderr, "DEBUG Linux-NTFS: lcn "
+						"< -1\n");
 #endif
 			/* Enter the current lcn into the run_list_element. */
 |