The Samba-Bugzilla – Attachment 12807 Details for
Bug 12499
vfs_dirsort doesn't handle opendir of "."
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.5.next, 4.4.next.
0001-s3-vfs-dirsort-doesn-t-handle-opendir-of-.-correctly.patch (text/plain), 1.12 KB, created by
Jeremy Allison
on 2017-01-10 01:09:58 UTC
(
hide
)
Description:
git-am fix for 4.5.next, 4.4.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2017-01-10 01:09:58 UTC
Size:
1.12 KB
patch
obsolete
>From 946ac5f91804c79d8710d31f2ccbbb528c92a823 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Thu, 5 Jan 2017 12:38:07 -0800 >Subject: [PATCH] s3: vfs: dirsort doesn't handle opendir of "." correctly. > >Needs to store $cwd path for correct sorting. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12499 > >Signed-off-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Uri Simchoni <uri@samba.org> >(cherry picked from commit e2f34116ab6328e2b872999dc7c4bcda69c03ab2) >--- > source3/modules/vfs_dirsort.c | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/source3/modules/vfs_dirsort.c b/source3/modules/vfs_dirsort.c >index d1640880e71..0e923e61706 100644 >--- a/source3/modules/vfs_dirsort.c >+++ b/source3/modules/vfs_dirsort.c >@@ -137,6 +137,10 @@ static DIR *dirsort_opendir(vfs_handle_struct *handle, > return NULL; > } > >+ if (ISDOT(data->smb_fname->base_name)) { >+ data->smb_fname->base_name = vfs_GetWd(data, handle->conn); >+ } >+ > /* Open the underlying directory and count the number of entries */ > data->source_directory = SMB_VFS_NEXT_OPENDIR(handle, fname, mask, > attr); >-- >2.11.0.390.gc69c2f50cf-goog >
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:
uri
:
review+
Actions:
View
Attachments on
bug 12499
:
12802
|
12807
|
12858
|
12859