diff options
author | Volker Lendecke <vl@samba.org> | 2008-10-09 17:22:59 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-10-09 17:34:52 +0200 |
commit | 45b359a77f006a366837efa3ad51570942bc4faa (patch) | |
tree | 278b77dc9bf2b6421f3c7ec6af70dde05cfec77a /source3 | |
parent | 2c9df6401c4b5cbd49c67c86c58f0515426846bb (diff) | |
download | samba-45b359a77f006a366837efa3ad51570942bc4faa.tar.gz samba-45b359a77f006a366837efa3ad51570942bc4faa.tar.bz2 samba-45b359a77f006a366837efa3ad51570942bc4faa.zip |
Make use of ZERO_STRUCT (the first memset was actually wrong)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_gpfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 29ea7f0abe..fa0b4e97a5 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -179,7 +179,7 @@ static int gpfs_get_nfs4_acl(const char *fname, SMB4ACL_T **ppacl) "who: %d\n", gace->aceType, gace->aceIFlags, gace->aceFlags, gace->aceMask, gace->aceWho)); - memset(&smbace, 0, sizeof(SMB4ACE_T)); + ZERO_STRUCT(smbace); if (gace->aceIFlags & ACE4_IFLAG_SPECIAL_ID) { smbace.flags |= SMB_ACE4_ID_SPECIAL; switch (gace->aceWho) { @@ -739,7 +739,7 @@ static int gpfsacl_emu_chmod(const char *path, mode_t mode) if (haveAllowEntry[i]==True) continue; - memset(&ace, 0, sizeof(SMB_ACE4PROP_T)); + ZERO_STRUCT(ace); ace.aceType = SMB_ACE4_ACCESS_ALLOWED_ACE_TYPE; ace.flags |= SMB_ACE4_ID_SPECIAL; ace.who.special_id = i; @@ -761,7 +761,7 @@ static int gpfsacl_emu_chmod(const char *path, mode_t mode) } /* don't add complementary DENY ACEs here */ - memset(&fake_fsp, 0, sizeof(struct files_struct)); + ZERO_STRUCT(fake_fsp); fake_fsp.fsp_name = (char *)path; /* no file_new is needed here */ /* put the acl */ |