s3: smbd: In open.c Use ucf_flags variable instead of passing as parameter.
authorJeremy Allison <jra@samba.org>
Tue, 22 Dec 2015 18:51:35 +0000 (10:51 -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/smbd/open.c

index 4053089a3b84ac8aebc1e2a9e084f7c1779fa806..a732a47bb7718c0df4b16ddb66ba0f2f97514190 100644 (file)
@@ -4828,6 +4828,7 @@ NTSTATUS get_relative_fid_filename(connection_struct *conn,
        files_struct *dir_fsp;
        char *parent_fname = NULL;
        char *new_base_name = NULL;
+       uint32_t ucf_flags = 0;
        NTSTATUS status;
 
        if (root_dir_fid == 0 || !smb_fname) {
@@ -4922,7 +4923,7 @@ NTSTATUS get_relative_fid_filename(connection_struct *conn,
                                conn,
                                req->flags2 & FLAGS2_DFS_PATHNAMES,
                                new_base_name,
-                               0,
+                               ucf_flags,
                                NULL,
                                smb_fname_out);
        if (!NT_STATUS_IS_OK(status)) {