From 8344e945742ff343702b9667e26082c560014523 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 31 Oct 2008 10:51:45 -0700 Subject: Unify se_access_check with the S4 code. Will make calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier for files. Jeremy. --- source3/lib/sharesec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/sharesec.c') diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index 298655e181..b90346ff7e 100644 --- a/source3/lib/sharesec.c +++ b/source3/lib/sharesec.c @@ -287,11 +287,11 @@ bool share_access_check(const NT_USER_TOKEN *token, const char *sharename, return True; } - ret = se_access_check(psd, token, desired_access, &granted, &status); + status = se_access_check(psd, token, desired_access, &granted); TALLOC_FREE(psd); - return ret; + return NT_STATUS_IS_OK(status); } /*************************************************************************** -- cgit