1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

Allow us to pass RAW-RENAME by testing that the connection struct

connection paths are equal, not just the conn structs themselves.
Jeremy.
(This used to be commit 632f3fe66fbcbe3cc25d070c3885177264f5ad65)
This commit is contained in:
Jeremy Allison 2008-03-11 13:38:25 -07:00
parent bac7b5b19e
commit b7a014a6ee

View 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",