mount -t ntfs /dev/sda1 /nt/c
ls -a /nt/c
ls returns no information (not even ".") and a message similar to the
following is logged:
10 is not an index
The problem occurs in the function ntfs_fixup_record() where a signed
short local variable is used to hold an unsigned value and later compare
with another unsigned field. The following trivial patch corrects the
problem.
--- linux/fs/ntfs/super.c.orig Fri Aug 7 14:53:50 1998
+++ linux/fs/ntfs/super.c Fri Aug 7 14:52:27 1998
@@ -32,7 +32,7 @@
int ntfs_fixup_record(ntfs_volume *vol, char *record, char *magic, int
size)
{
int start, count, offset;
- short fixup;
+ unsigned short fixup;
if(!IS_MAGIC(record,magic))
return 0;
Tom
-- Tom Eastep COMPAQ Computer Corporation Enterprise Computing Group Tandem Division tom.eastep@compaq.com- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html