bindfs/bindfs-03-permchain1.diff

35 lines
984 B
Diff

parent 673f8a422ccda9b87bbb7a930956e76afeef8948 ()
commit 77ac30454957e478eb7939b3bc7a181eaa254c58
Author: Jan Engelhardt <jengelh@inai.de>
Date: Tue Jun 26 14:29:48 2012 +0200
bindfs: reduce memory holes in struct permchain
Reduce holes in struct permchain by appropriately sizing and
reordering members.
---
src/permchain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/permchain.c b/src/permchain.c
index 6e99e7b..fe2dd48 100644
--- a/src/permchain.c
+++ b/src/permchain.c
@@ -31,12 +31,12 @@
struct permchain {
mode_t mask; /* which permissions to apply to */
- char op; /* one of '=', '+', '-', 'o' (octal) or '\0' */
union {
- char operands[16]; /* a subset of rwxXstugo */
+ char operands[10]; /* a subset of rwxXstugo */
unsigned int octal;
};
int flags;
+ char op; /* one of '=', '+', '-', 'o' (octal) or '\0' */
struct permchain *next;
};
--
# Created with git-export-patch