mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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>
This commit is contained in:
parent
b9e76cc8e1
commit
e2f34116ab
@ -138,6 +138,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, smb_fname, mask,
|
||||
attr);
|
||||
|
Loading…
Reference in New Issue
Block a user