1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

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>
This commit is contained in:
Christian Ambach 2013-06-21 15:11:55 +02:00
parent 245b5ffdde
commit 935992fc55

View File

@ -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;
}
/*