From: Jeremy Allison Date: Tue, 17 Jul 2007 05:55:10 +0000 (+0000) Subject: r23913: Revert back to Volker's original logic to fix the X-Git-Tag: samba-misc-tags/initial-v3-2-unstable~696 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f72dd9af82921de4827b9b9d90d75127332295;p=thirdparty%2Fsamba.git r23913: Revert back to Volker's original logic to fix the RAW-SFILEINFO-RENAME until I can figure out what is different from the way CIFSFS drives this in the cthon tests and the way smbtorture drives it. Jeremy. --- diff --git a/source/smbd/reply.c b/source/smbd/reply.c index e3ae0ef7f6a..0062ca18dac 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -4449,7 +4449,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, pstrin if (dst_exists) { files_struct *dst_fsp = file_find_di_first(file_id_sbuf(&sbuf1)); - if (dst_fsp && !(dst_fsp->share_access & FILE_SHARE_DELETE)) { + if (dst_fsp) { DEBUG(3, ("rename_internals_fsp: Target file open\n")); return NT_STATUS_ACCESS_DENIED; }