Rename set_sd() to set_sd_blob() - this describes what it does.
authorJeremy Allison <jra@samba.org>
Wed, 29 Aug 2012 20:23:06 +0000 (13:23 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 30 Aug 2012 17:08:50 +0000 (10:08 -0700)
source3/smbd/nttrans.c
source3/smbd/proto.h
source3/smbd/smb2_setinfo.c

index a0a3f59e0811608605945e1f75972c324be3ac4e..107e8f35584cc9634185a420020d489ebc20444a 100644 (file)
@@ -831,10 +831,10 @@ static void do_nt_transact_create_pipe(connection_struct *conn,
 }
 
 /****************************************************************************
- Internal fn to set security descriptors.
+ Internal fn to set security descriptors from a data blob.
 ****************************************************************************/
 
-NTSTATUS set_sd(files_struct *fsp, uint8_t *data, uint32_t sd_len,
+NTSTATUS set_sd_blob(files_struct *fsp, uint8_t *data, uint32_t sd_len,
                       uint32_t security_info_sent)
 {
        struct security_descriptor *psd = NULL;
@@ -910,7 +910,7 @@ NTSTATUS set_sd(files_struct *fsp, uint8_t *data, uint32_t sd_len,
        }
 
        if (DEBUGLEVEL >= 10) {
-               DEBUG(10,("set_sd for file %s\n", fsp_str_dbg(fsp)));
+               DEBUG(10,("set_sd_blob for file %s\n", fsp_str_dbg(fsp)));
                NDR_PRINT_DEBUG(security_descriptor, psd);
        }
 
@@ -2101,7 +2101,7 @@ static void call_nt_transact_set_security_desc(connection_struct *conn,
                return;
        }
 
-       status = set_sd(fsp, (uint8 *)data, data_count, security_info_sent);
+       status = set_sd_blob(fsp, (uint8 *)data, data_count, security_info_sent);
 
        if (!NT_STATUS_IS_OK(status)) {
                reply_nterror(req, status);
index 5a384744a7bf567b0d1479c46b264029c2265414..83555906e85077208656c05f7f95d4481f84f257 100644 (file)
@@ -577,7 +577,7 @@ void *init_quota_handle(TALLOC_CTX *mem_ctx);
 /* The following definitions come from smbd/nttrans.c  */
 
 void reply_ntcreate_and_X(struct smb_request *req);
-NTSTATUS set_sd(files_struct *fsp, uint8_t *data, uint32_t sd_len,
+NTSTATUS set_sd_blob(files_struct *fsp, uint8_t *data, uint32_t sd_len,
                        uint32_t security_info_sent);
 struct ea_list *read_nttrans_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size);
 void reply_ntcancel(struct smb_request *req);
index 1b79a641332e8699a0b2f0ec3f0a8d59bad7effa..d88f7ac8a28d037875b3c3f0badf321ec6248c37 100644 (file)
@@ -308,7 +308,7 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
                        return tevent_req_post(req, ev);
                }
 
-               status = set_sd(fsp,
+               status = set_sd_blob(fsp,
                                in_input_buffer.data,
                                in_input_buffer.length,
                                in_additional_information);