The branch, v3-5-test has been updated via fcd6a57... 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. from 22d2628... Test creating and deleting a bad symlink using the POSIX calls. Ensure we don't regress on bug 6769. Jeremy.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test - Log ----------------------------------------------------------------- commit fcd6a57d310a55cda7ff6248a59a99d50d925bed Author: Jeremy Allison <j...@samba.org> Date: Wed Oct 7 15:14:50 2009 -0700 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. ----------------------------------------------------------------------- Summary of changes: source3/smbd/files.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 146d809..bf21605 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -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; } -- Samba Shared Repository