From 8a338c65a1824ae8a93bef7bc8fac65684c285c8 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 8 Jun 2012 17:47:31 +0200 Subject: s3:smbd: change set_file_oplock() to return NTSTATUS Pair-Programmed-With: Volker Lendecke Pair-Programmed-With: Stefan Metzmacher Autobuild-User(master): Michael Adam Autobuild-Date(master): Fri Jun 8 23:20:20 CEST 2012 on sn-devel-104 --- source3/smbd/open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd/open.c') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 7708833f97..4581553be2 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2408,7 +2408,8 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, * file structs. */ - if (!set_file_oplock(fsp, fsp->oplock_type)) { + status = set_file_oplock(fsp, fsp->oplock_type); + if (!NT_STATUS_IS_OK(status)) { /* * Could not get the kernel oplock or there are byte-range * locks on the file. -- cgit