Allow us to pass RAW-RENAME by testing that the connection struct
authorJeremy Allison <jra@samba.org>
Tue, 11 Mar 2008 20:38:25 +0000 (13:38 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 11 Mar 2008 20:38:25 +0000 (13:38 -0700)
connection paths are equal, not just the conn structs themselves.
Jeremy.
(This used to be commit 632f3fe66fbcbe3cc25d070c3885177264f5ad65)

source3/smbd/reply.c

index d3b5dfac64e1c1bf3292c7e1c1a49a425d81b8e1..91d5f25a27d3b67765fcf216794386b4c614fc8c 100644 (file)
@@ -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",