From 632f3fe66fbcbe3cc25d070c3885177264f5ad65 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 11 Mar 2008 13:38:25 -0700 Subject: [PATCH] Allow us to pass RAW-RENAME by testing that the connection struct connection paths are equal, not just the conn structs themselves. Jeremy. --- source/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/smbd/reply.c b/source/smbd/reply.c index d3b5dfac64e..91d5f25a27d 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -5295,7 +5295,7 @@ static void rename_open_files(connection_struct *conn, sharepaths we need to manipulate relative paths. */ /* TODO - create the absolute path and manipulate the newname relative to the sharepath. */ - if (fsp->conn != conn) { + if (!strequal(fsp->conn->connectpath, conn->connectpath)) { continue; } DEBUG(10,("rename_open_files: renaming file fnum %d (file_id %s) from %s -> %s\n", -- 2.11.4.GIT