]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r23913: Revert back to Volker's original logic to fix the
authorJeremy Allison <jra@samba.org>
Tue, 17 Jul 2007 05:55:10 +0000 (05:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:41 +0000 (12:28 -0500)
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.
(This used to be commit 99f72dd9af82921de4827b9b9d90d75127332295)

source3/smbd/reply.c

index e3ae0ef7f6aa6253490fc61109683d1d93142e8c..0062ca18dac8c639c72a1f2e3de9c41cf9058ab7 100644 (file)
@@ -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;
                }