The Samba-Bugzilla – Attachment 6988 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]
Correct (fixed) patch of JeremyA for bug8515
bug8515_samba_jeremy.patch (text/plain), 612 bytes, created by
Volodymyr Khomenko (dead mail address)
on 2011-10-12 09:48:36 UTC
(
hide
)
Description:
Correct (fixed) patch of JeremyA for bug8515
Filename:
MIME Type:
Creator:
Volodymyr Khomenko (dead mail address)
Created:
2011-10-12 09:48:36 UTC
Size:
612 bytes
patch
obsolete
>--- 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->base_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