diff options
author | Jeremy Allison <jra@samba.org> | 2008-10-31 10:51:45 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-10-31 10:51:45 -0700 |
commit | 8344e945742ff343702b9667e26082c560014523 (patch) | |
tree | 1e63530a7e4d96b47abaab0192f1f302b6aefb2e /source3/printing | |
parent | 161cb81911fe8877bfefd8bd3553f0b3166299fb (diff) | |
download | samba-8344e945742ff343702b9667e26082c560014523.tar.gz samba-8344e945742ff343702b9667e26082c560014523.tar.xz samba-8344e945742ff343702b9667e26082c560014523.zip |
Unify se_access_check with the S4 code. Will make
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier
for files.
Jeremy.
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 5ec0e1e9f3e..9c1323eaa26 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -5825,10 +5825,10 @@ bool print_access_check(struct auth_serversupplied_info *server_info, int snum, } /* Check access */ - result = se_access_check(secdesc->sd, server_info->ptok, access_type, - &access_granted, &status); + status = se_access_check(secdesc->sd, server_info->ptok, access_type, + &access_granted); - DEBUG(4, ("access check was %s\n", result ? "SUCCESS" : "FAILURE")); + DEBUG(4, ("access check was %s\n", NT_STATUS_IS_OK(status) ? "SUCCESS" : "FAILURE")); /* see if we need to try the printer admin list */ @@ -5842,11 +5842,11 @@ bool print_access_check(struct auth_serversupplied_info *server_info, int snum, talloc_destroy(mem_ctx); - if (!result) { + if (!NT_STATUS_IS_OK(status)) { errno = EACCES; } - return result; + return NT_STATUS_IS_OK(status); } /**************************************************************************** |