[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-3083-ge42477c
Volker Lendecke
vlendec at samba.org
Thu Oct 9 15:27:13 GMT 2008
The branch, v3-2-test has been updated
via e42477caece1a2e861aa0698d2e06847819f0b0d (commit)
from 2374799c8114ae3ed422d1cbe4ca12c4fd075274 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit e42477caece1a2e861aa0698d2e06847819f0b0d
Author: Volker Lendecke <vl at samba.org>
Date: Thu Oct 9 17:22:59 2008 +0200
Make use of ZERO_STRUCT (the first memset was actually wrong)
-----------------------------------------------------------------------
Summary of changes:
source/modules/vfs_gpfs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/modules/vfs_gpfs.c b/source/modules/vfs_gpfs.c
index d10906d..fe07097 100644
--- a/source/modules/vfs_gpfs.c
+++ b/source/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) {
@@ -744,7 +744,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;
@@ -766,7 +766,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 */
--
Samba Shared Repository
More information about the samba-cvs
mailing list