diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 00:34:39 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 00:34:39 +0100 |
commit | 72a1e3acfa5789134a28fb0609bc88b25c0e0b15 (patch) | |
tree | e7a7e8aaddbae9a97543d5b13bc16ce2e154c134 /source3/printing/nt_printing.c | |
parent | 59206674521065e041a6020f9ba793fac47b1d7d (diff) | |
parent | ff274e57eacb9ac4c81adfcfea4f7b4b668a7d94 (diff) | |
download | samba-72a1e3acfa5789134a28fb0609bc88b25c0e0b15.tar.gz samba-72a1e3acfa5789134a28fb0609bc88b25c0e0b15.tar.bz2 samba-72a1e3acfa5789134a28fb0609bc88b25c0e0b15.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/printing/nt_printing.c')
-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 5ec0e1e9f3..9c1323eaa2 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); } /**************************************************************************** |