[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-982-g1315801

Volker Lendecke vl at samba.org
Tue Jan 1 12:10:26 GMT 2008


The branch, v3-2-test has been updated
       via  13158014e3b05e44eea897fbcf470957301c5c97 (commit)
      from  5608c398ad9a0d05d651905a81dd92b7a0e120ff (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 13158014e3b05e44eea897fbcf470957301c5c97
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Jan 1 12:55:29 2008 +0100

    Use NULL instead of 0
    
    "struct security_descriptor" has pointers, not integers inside

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

Summary of changes:
 source/smbd/open.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/open.c b/source/smbd/open.c
index d3ba9e0..b6e6add 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2606,16 +2606,16 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
 		uint32_t sec_info_sent = ALL_SECURITY_INFORMATION;
 		uint32_t saved_access_mask = fsp->access_mask;
 
-		if (sd->owner_sid==0) {
+		if (sd->owner_sid == NULL) {
 			sec_info_sent &= ~OWNER_SECURITY_INFORMATION;
 		}
-		if (sd->group_sid==0) {
+		if (sd->group_sid == NULL) {
 			sec_info_sent &= ~GROUP_SECURITY_INFORMATION;
 		}
-		if (sd->sacl==0) {
+		if (sd->sacl == NULL) {
 			sec_info_sent &= ~SACL_SECURITY_INFORMATION;
 		}
-		if (sd->dacl==0) {
+		if (sd->dacl == NULL) {
 			sec_info_sent &= ~DACL_SECURITY_INFORMATION;
 		}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list