The Samba-Bugzilla – Attachment 7198 Details for
Bug 8664
Renaming a symlink fails if the symlink target is outside of the share
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 3.5.next
0001-Fix-bug-8664-Renaming-a-symlink-fails-if-the-symlink.patch (text/plain), 1.37 KB, created by
Jeremy Allison
on 2011-12-16 20:47:23 UTC
(
hide
)
Description:
git-am fix for 3.5.next
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2011-12-16 20:47:23 UTC
Size:
1.37 KB
patch
obsolete
>From 95edadd0beeeb2bc1070a98ac38c75fdc46fe3eb Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Fri, 16 Dec 2011 12:13:52 -0800 >Subject: [PATCH] Fix bug #8664 - Renaming a symlink fails if the symlink target is outside of the share. > >--- > source3/smbd/reply.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c >index 43cdf96..ab14bb1 100644 >--- a/source3/smbd/reply.c >+++ b/source3/smbd/reply.c >@@ -6283,6 +6283,8 @@ void reply_mv(struct smb_request *req) > TALLOC_CTX *ctx = talloc_tos(); > struct smb_filename *smb_fname_src = NULL; > struct smb_filename *smb_fname_dst = NULL; >+ uint32_t src_ucf_flags = lp_posix_pathnames() ? UCF_UNIX_NAME_LOOKUP : UCF_COND_ALLOW_WCARD_LCOMP; >+ uint32_t dst_ucf_flags = UCF_SAVE_LCOMP | (lp_posix_pathnames() ? 0 : UCF_COND_ALLOW_WCARD_LCOMP); > > START_PROFILE(SMBmv); > >@@ -6312,7 +6314,7 @@ void reply_mv(struct smb_request *req) > conn, > req->flags2 & FLAGS2_DFS_PATHNAMES, > name, >- UCF_COND_ALLOW_WCARD_LCOMP, >+ src_ucf_flags, > &src_has_wcard, > &smb_fname_src); > >@@ -6330,7 +6332,7 @@ void reply_mv(struct smb_request *req) > conn, > req->flags2 & FLAGS2_DFS_PATHNAMES, > newname, >- UCF_COND_ALLOW_WCARD_LCOMP | UCF_SAVE_LCOMP, >+ dst_ucf_flags, > &dest_has_wcard, > &smb_fname_dst); > >-- >1.7.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 8664
: 7198 |
7201