Third part of fix for bug #8541 - readlink() on Linux clients fails if the symlink...
authorJeremy Allison <jra@samba.org>
Sat, 22 Oct 2011 01:35:15 +0000 (18:35 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 26 Oct 2011 17:28:06 +0000 (19:28 +0200)
Missed passing ucf_flags instead of hard coded flags in findfirst call.
(cherry picked from commit 49d2a796bed0273327d8919755023c4dbd6d8232)

source3/smbd/trans2.c

index 284635d85c862bdea794ee9136bd203337a43ec7..129ab013e087f5150bda5f3dfdc0a58c404cc892 100644 (file)
@@ -2333,8 +2333,7 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n",
        ntstatus = filename_convert(ctx, conn,
                                    req->flags2 & FLAGS2_DFS_PATHNAMES,
                                    directory,
-                                   (UCF_SAVE_LCOMP |
-                                       UCF_ALWAYS_ALLOW_WCARD_LCOMP),
+                                   ucf_flags,
                                    &mask_contains_wcard,
                                    &smb_dname);
        if (!NT_STATUS_IS_OK(ntstatus)) {