The Samba-Bugzilla – Attachment 6987 Details for
Bug 8515
Empty CIFS share can be blocked for other clients by deleting it via empty path (DELETE_PENDING until the last client)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Test patch for 3.5.next.
look (text/plain), 698 bytes, created by
Jeremy Allison
on 2011-10-11 23:56:29 UTC
(
hide
)
Description:
Test patch for 3.5.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2011-10-11 23:56:29 UTC
Size:
698 bytes
patch
obsolete
>diff --git a/source3/locking/locking.c b/source3/locking/locking.c >index 095d0b1..2cbd6b0 100644 >--- a/source3/locking/locking.c >+++ b/source3/locking/locking.c >@@ -1350,6 +1350,14 @@ NTSTATUS can_set_delete_on_close(files_struct *fsp, uint32 dosmode) > /* Don't allow delete on close for non-empty directories. */ > if (fsp->is_directory) { > SMB_ASSERT(!is_ntfs_stream_smb_fname(fsp->fsp_name)); >+ >+ /* Or the root of a share. */ >+ if (ISDOT(fsp->fsp_name)) { >+ DEBUG(10,("can_set_delete_on_close: can't set delete on " >+ "close for the root of a share.\n")); >+ return NT_STATUS_ACCESS_DENIED; >+ } >+ > return can_delete_directory(fsp->conn, > fsp->fsp_name->base_name); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8515
:
6987
|
6988
|
6990
|
6991