[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Sun Aug 1 10:17:02 MDT 2010


The branch, master has been updated
       via  c59ab01... s3: Fix an uninitialized variable
       via  fb167a6... s3: Fix a C++ warning
      from  0213cfa... s3: Fix some nonempty blank lines

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c59ab01e33aa5fbfd3837d311c0e65593ab7a08a
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Aug 1 20:15:57 2010 +0200

    s3: Fix an uninitialized variable

commit fb167a602879e9348d7fab1a24e04dc289678725
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Aug 1 20:15:39 2010 +0200

    s3: Fix a C++ warning

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/system.c             |    2 +-
 source3/modules/vfs_acl_common.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/system.c b/source3/lib/system.c
index 2877ba9..ee8efe8 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -1790,7 +1790,7 @@ static ssize_t bsd_attr_list (int type, extattr_arg arg, char *list, size_t size
 			return -1;
 		}
 		/* Shift results back, so we can prepend prefixes */
-		buf = memmove(list + len, list, list_size);
+		buf = (char *)memmove(list + len, list, list_size);
 
 		for(i = 0; i < list_size; i += len + 1) {
 			len = buf[i];
diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c
index 79eb533..46ff2e6 100644
--- a/source3/modules/vfs_acl_common.c
+++ b/source3/modules/vfs_acl_common.c
@@ -251,7 +251,7 @@ static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle,
 {
 	DATA_BLOB blob;
 	NTSTATUS status;
-	uint16_t hash_type;
+	uint16_t hash_type = XATTR_SD_HASH_TYPE_NONE;
 	uint8_t hash[XATTR_SD_HASH_SIZE];
 	uint8_t hash_tmp[XATTR_SD_HASH_SIZE];
 	struct security_descriptor *psd = NULL;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list