patch-2.3.99-pre7 linux/fs/ntfs/util.c

Next file: linux/fs/open.c
Previous file: linux/fs/ntfs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/fs/ntfs/util.c linux/fs/ntfs/util.c
@@ -267,6 +267,8 @@
 			return -1;
 		if(b[i]<a[i])
 			return 1;
+		if (a[i] == 0)
+			return 0;
 	}
 	return 0;
 }
@@ -282,6 +284,8 @@
 			return -1;
 		if(b[i]<NTFS_GETU16(a+i))
 			return 1;
+		if (b[i] == 0)
+			return 0;
 	}
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)