svn commit: samba r23445 - in branches: SAMBA_3_0/source/smbd SAMBA_3_0_26/source/smbd

jra at samba.org jra at samba.org
Tue Jun 12 18:14:17 GMT 2007


Author: jra
Date: 2007-06-12 18:14:16 +0000 (Tue, 12 Jun 2007)
New Revision: 23445

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23445

Log:
Fix suggested by Volker. Don't call rename_open_files
if the name wasn't changed.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/reply.c
   branches/SAMBA_3_0_26/source/smbd/reply.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/reply.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/reply.c	2007-06-12 16:31:03 UTC (rev 23444)
+++ branches/SAMBA_3_0/source/smbd/reply.c	2007-06-12 18:14:16 UTC (rev 23445)
@@ -4638,7 +4638,6 @@
 		id = file_id_sbuf(&sbuf1);
 
 		if (strcsequal(directory, newname)) {
-			rename_open_files(conn, NULL, id, newname);
 			DEBUG(3, ("rename_internals: identical names in "
 				  "rename %s - returning success\n",
 				  directory));
@@ -4770,7 +4769,6 @@
 		id = file_id_sbuf(&sbuf1);
 
 		if (strcsequal(fname,destname)) {
-			rename_open_files(conn, NULL, id, newname);
 			DEBUG(3,("rename_internals: identical names "
 				 "in wildcard rename %s - success\n",
 				 fname));

Modified: branches/SAMBA_3_0_26/source/smbd/reply.c
===================================================================
--- branches/SAMBA_3_0_26/source/smbd/reply.c	2007-06-12 16:31:03 UTC (rev 23444)
+++ branches/SAMBA_3_0_26/source/smbd/reply.c	2007-06-12 18:14:16 UTC (rev 23445)
@@ -4636,7 +4636,6 @@
 		id = file_id_sbuf(&sbuf1);
 
 		if (strcsequal(directory, newname)) {
-			rename_open_files(conn, NULL, id, newname);
 			DEBUG(3, ("rename_internals: identical names in "
 				  "rename %s - returning success\n",
 				  directory));
@@ -4768,7 +4767,6 @@
 		id = file_id_sbuf(&sbuf1);
 
 		if (strcsequal(fname,destname)) {
-			rename_open_files(conn, NULL, id, newname);
 			DEBUG(3,("rename_internals: identical names "
 				 "in wildcard rename %s - success\n",
 				 fname));



More information about the samba-cvs mailing list