From 2d6bd3a0f4088cd244eeabf2c45f61b5129ea5c3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 7 Oct 2009 15:21:31 -0700 Subject: [PATCH] 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. --- source3/smbd/files.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 54c4c73..dc3e37e 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -409,14 +409,12 @@ bool file_find_subpath(files_struct *dir_fsp) fsp->fsp_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 || d1_fullname[dlen] == ':') { + if (d1_fullname[dlen] != '/') { TALLOC_FREE(d1_fullname); continue; } -- 1.5.4.3