diff options
author | Jeremy Allison <jra@samba.org> | 2008-03-11 13:38:25 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-03-11 13:38:25 -0700 |
commit | b7a014a6ee1d71beae14a0f90460aa5fdfb5d07c (patch) | |
tree | a46db9c52d238fc27f3b73e0fe2a89beac4939d6 | |
parent | bac7b5b19e1c9a21a8de6b7b09cd4b06faf43f09 (diff) | |
download | samba-b7a014a6ee1d71beae14a0f90460aa5fdfb5d07c.tar.gz samba-b7a014a6ee1d71beae14a0f90460aa5fdfb5d07c.tar.bz2 samba-b7a014a6ee1d71beae14a0f90460aa5fdfb5d07c.zip |
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)
-rw-r--r-- | source3/smbd/reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index d3b5dfac64..91d5f25a27 100644 --- a/source3/smbd/reply.c +++ b/source3/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", |