diff options
author | Christian Ambach <ambi@samba.org> | 2013-06-21 15:11:55 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2013-06-25 12:54:06 +0200 |
commit | 935992fc5502ac63cc0c1ebf00089e7f39558c82 (patch) | |
tree | c19c89805e0c2ea02636292590fd3eed0f3d051e /source3 | |
parent | 245b5ffddef945e071ea1b5d26de1da80a0b7ae8 (diff) | |
download | samba-935992fc5502ac63cc0c1ebf00089e7f39558c82.tar.gz samba-935992fc5502ac63cc0c1ebf00089e7f39558c82.tar.bz2 samba-935992fc5502ac63cc0c1ebf00089e7f39558c82.zip |
s3:smbd/close use common exit path
do not return early here, but use the common exit path that will
remove the share mode from the record
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/close.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 64faf989ff..093bb9f7ed 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -350,15 +350,8 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp, normal_close = (close_type == NORMAL_CLOSE || close_type == SHUTDOWN_CLOSE); if (!normal_close || !delete_file) { - - if (!del_share_mode(lck, fsp)) { - DEBUG(0, ("close_remove_share_mode: Could not delete " - "share entry for file %s\n", - fsp_str_dbg(fsp))); - } - - TALLOC_FREE(lck); - return NT_STATUS_OK; + status = NT_STATUS_OK; + goto done; } /* |