From 07e686a744adb6586854452b787179afcb60e9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 1 Oct 2010 10:38:35 +0200 Subject: [PATCH] Made sure Posix ACLs are not padded by compiler --- include/ntfs-3g/security.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ntfs-3g/security.h b/include/ntfs-3g/security.h index 4f3b5c54..83d7c0e1 100644 --- a/include/ntfs-3g/security.h +++ b/include/ntfs-3g/security.h @@ -166,14 +166,14 @@ struct POSIX_ACE { u16 tag; u16 perms; s32 id; -} ; +} __attribute__((__packed__)); struct POSIX_ACL { u8 version; u8 flags; u16 filler; struct POSIX_ACE ace[0]; -} ; +} __attribute__((__packed__)); struct POSIX_SECURITY { mode_t mode;