diff options
-rw-r--r-- | source3/smbd/open.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 55f2fb2164..5024c90285 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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); |