summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-22 10:31:06 -0700
committerJeremy Allison <jra@samba.org>2010-10-22 18:15:48 +0000
commita8b95686a7bde3f96f141b6938e24e101567ef54 (patch)
treec5bdfbfc2fb1acb0c211d9941bc0fd321b3a6d9a /source3/printing
parent3e79cd6856e5c76cc39ad2be68b40534a524cecd (diff)
downloadsamba-a8b95686a7bde3f96f141b6938e24e101567ef54.tar.gz
samba-a8b95686a7bde3f96f141b6938e24e101567ef54.tar.bz2
samba-a8b95686a7bde3f96f141b6938e24e101567ef54.zip
Wrap security_token_has_privilege() with a check for lp_enable_privileges(). Needed
to maintain compatibility with smb.conf manpage. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 22 18:15:48 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 84de565159..026161b26b 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2082,7 +2082,7 @@ bool print_access_check(const struct auth_serversupplied_info *server_info,
/* Always allow root or SE_PRINT_OPERATROR to do anything */
if (server_info->utok.uid == sec_initial_uid()
- || security_token_has_privilege(server_info->ptok, SEC_PRIV_PRINT_OPERATOR)) {
+ || s3_security_token_has_privilege(server_info->ptok, SEC_PRIV_PRINT_OPERATOR)) {
return True;
}