summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-10-07 20:13:28 +0000
committerJeremy Allison <jra@samba.org>2013-10-09 01:58:55 +0200
commit02393156de280748d4e87f231d477fa70437a8a0 (patch)
treed2a47e79bc1e73ba91dda5bad81db43312ac1d70 /source3/smbd
parent0cc212385c4b622bb1fa5055cde87ab43de36e45 (diff)
downloadsamba-02393156de280748d4e87f231d477fa70437a8a0.tar.gz
samba-02393156de280748d4e87f231d477fa70437a8a0.tar.bz2
samba-02393156de280748d4e87f231d477fa70437a8a0.zip
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
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c1
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);