mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbd: Fix an error path in open_directory
In open_file_ntcreate we do the del_share_mode on error. We should do it here as well. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Oct 9 01:58:55 CEST 2013 on sn-devel-104
This commit is contained in:
parent
0cc212385c
commit
02393156de
@ -3190,6 +3190,7 @@ static NTSTATUS open_directory(connection_struct *conn,
|
||||
if (create_options & FILE_DELETE_ON_CLOSE) {
|
||||
status = can_set_delete_on_close(fsp, 0);
|
||||
if (!NT_STATUS_IS_OK(status) && !NT_STATUS_EQUAL(status, NT_STATUS_DIRECTORY_NOT_EMPTY)) {
|
||||
del_share_mode(lck, fsp);
|
||||
TALLOC_FREE(lck);
|
||||
fd_close(fsp);
|
||||
file_free(req, fsp);
|
||||
|
Loading…
Reference in New Issue
Block a user