s3: smbd: In srv_srvsvc_nt.c Use ucf_flags variable instead of passing as parameter.
authorJeremy Allison <jra@samba.org>
Tue, 22 Dec 2015 19:07:16 +0000 (11:07 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 23 Dec 2015 02:31:10 +0000 (03:31 +0100)
This will allow us to move lp_posix_pathnames() out of unix_convert()
later.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
source3/rpc_server/srvsvc/srv_srvsvc_nt.c

index 96c022beaa0c252ef17dae867d3f20c47c9d5126..b1e9d133809f0033efd2b2a1788cdb58ea04531a 100644 (file)
@@ -2311,6 +2311,7 @@ WERROR _srvsvc_NetGetFileSecurity(struct pipes_struct *p,
        files_struct *fsp = NULL;
        int snum;
        char *oldcwd = NULL;
+       uint32_t ucf_flags = 0;
 
        ZERO_STRUCT(st);
 
@@ -2346,7 +2347,7 @@ WERROR _srvsvc_NetGetFileSecurity(struct pipes_struct *p,
                                        conn,
                                        false,
                                        r->in.file,
-                                       0,
+                                       ucf_flags,
                                        NULL,
                                        &smb_fname);
        if (!NT_STATUS_IS_OK(nt_status)) {
@@ -2458,6 +2459,7 @@ WERROR _srvsvc_NetSetFileSecurity(struct pipes_struct *p,
        char *oldcwd = NULL;
        struct security_descriptor *psd = NULL;
        uint32_t security_info_sent = 0;
+       uint32_t ucf_flags = 0;
 
        ZERO_STRUCT(st);
 
@@ -2495,7 +2497,7 @@ WERROR _srvsvc_NetSetFileSecurity(struct pipes_struct *p,
                                        conn,
                                        false,
                                        r->in.file,
-                                       0,
+                                       ucf_flags,
                                        NULL,
                                        &smb_fname);
        if (!NT_STATUS_IS_OK(nt_status)) {