diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-14 21:26:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-08-14 21:26:11 +0000 |
commit | b468572a93c2c7b249860f66d8e3374b1084e810 (patch) | |
tree | f72d2043866800a535ef59bcf06bee40c46dc6f6 | |
parent | 879b7f299232dcc6e71864a5abab21116b39b32a (diff) |
don't write grabage in unused direntry field. newer windows versions
don't like it. pr3400
-rw-r--r-- | sys/msdosfs/denode.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/msdosfs/denode.h b/sys/msdosfs/denode.h index 0bc614780a1..fea3d34467c 100644 --- a/sys/msdosfs/denode.h +++ b/sys/msdosfs/denode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: denode.h,v 1.13 2002/03/14 01:27:09 millert Exp $ */ +/* $OpenBSD: denode.h,v 1.14 2003/08/14 21:26:10 tedu Exp $ */ /* $NetBSD: denode.h,v 1.24 1997/10/17 11:23:39 ws Exp $ */ /*- @@ -198,8 +198,6 @@ struct denode { (dep)->de_FileSize = getulong((dp)->deFileSize), \ (FAT32((dep)->de_pmp) ? DE_INTERNALIZE32((dep), (dp)) : 0)) -#define DE_EXTERNALIZE32(dp, dep) \ - putushort((dp)->deHighClust, (dep)->de_StartCluster >> 16) #define DE_EXTERNALIZE(dp, dep) \ (bcopy((dep)->de_Name, (dp)->deName, 11), \ (dp)->deAttributes = (dep)->de_Attributes, \ @@ -213,7 +211,8 @@ struct denode { putushort((dp)->deStartCluster, (dep)->de_StartCluster), \ putulong((dp)->deFileSize, \ ((dep)->de_Attributes & ATTR_DIRECTORY) ? 0 : (dep)->de_FileSize),\ - (FAT32((dep)->de_pmp) ? DE_EXTERNALIZE32((dp), (dep)) : 0)) + putushort((dp)->deHighClust, \ + FAT32((dep)->de_pmp) ? (dep)->de_StartCluster >> 16 : 0)) #define de_forw de_chain[0] #define de_back de_chain[1] |