Kernel - Made tFInfo packed to fix size mismatches between user and kernel land
authorJohn Hodge <[email protected]>
Mon, 24 Oct 2011 01:18:46 +0000 (09:18 +0800)
committerJohn Hodge <[email protected]>
Mon, 24 Oct 2011 01:18:46 +0000 (09:18 +0800)
Kernel/include/vfs_ext.h

index e8cd242..d7d74c4 100644 (file)
@@ -118,7 +118,7 @@ typedef struct sVFS_ACL
                unsigned Inv:   1;      //!< Invert Permissions
                unsigned Perms: 31;     //!< Permission Flags
        };
-}      tVFS_ACL;
+} tVFS_ACL;
 
 /**
  * \brief SYS_FINFO structure
@@ -136,7 +136,7 @@ typedef struct sFInfo
        Sint64  ctime;  //!< Creation time
        Sint32  numacls;        //!< Total number of ACL entries
        tVFS_ACL        acls[]; //!< ACL buffer (size is passed in the \a MaxACLs argument to VFS_FInfo)
-}      tFInfo;
+} PACKED tFInfo;
 
 /**
  * \brief fd_set for select()

UCC git Repository :: git.ucc.asn.au