From: Jeremy Allison Date: Tue, 11 Mar 2008 20:38:25 +0000 (-0700) Subject: Allow us to pass RAW-RENAME by testing that the connection struct X-Git-Tag: samba-3.3.0pre1~3327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=632f3fe66fbcbe3cc25d070c3885177264f5ad65;p=thirdparty%2Fsamba.git Allow us to pass RAW-RENAME by testing that the connection struct connection paths are equal, not just the conn structs themselves. Jeremy. --- 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",