mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Correct fix for bug 6781 - Cannot rename subfolders in Explorer view with recent versions of Samba.
Without this fix, renaming a directory ./a to ./b, whilst a directory ./aa was already open would fail. Jeremy.
This commit is contained in:
parent
2f379d70ff
commit
746fb5aa4f
@ -430,14 +430,12 @@ bool file_find_subpath(files_struct *dir_fsp)
|
||||
fsp->fsp_name->base_name);
|
||||
|
||||
if (strnequal(d_fullname, d1_fullname, dlen)) {
|
||||
int d1_len = strlen(d1_fullname);
|
||||
|
||||
/*
|
||||
* If the open file is a second file handle to the
|
||||
* same name or is a stream on the original file, then
|
||||
* don't return true.
|
||||
*/
|
||||
if (d1_len == dlen) {
|
||||
if (d1_fullname[dlen] != '/') {
|
||||
TALLOC_FREE(d1_fullname);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user