summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-20 00:57:53 +0200
committerGünther Deschner <gd@samba.org>2009-04-20 00:59:36 +0200
commitd9aaf3759ac7fd6ce07a347a0138bdfb27a6f929 (patch)
tree5d4021a279faed49adef57d8e627dfabacc64434 /source3/printing
parent5f0c9c57f53f9b0026b4f58f68442a72103c0d7d (diff)
downloadsamba-d9aaf3759ac7fd6ce07a347a0138bdfb27a6f929.tar.gz
samba-d9aaf3759ac7fd6ce07a347a0138bdfb27a6f929.tar.bz2
samba-d9aaf3759ac7fd6ce07a347a0138bdfb27a6f929.zip
s3-printing: use sec_initial_uid() instead "0" in print_access_check().
Another babystep in order to make us pass RPC-SPOOLSS. Guenther
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 f3b938e6ff..b96d64b4be 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -5736,7 +5736,7 @@ bool print_access_check(struct auth_serversupplied_info *server_info, int snum,
/* Always allow root or SE_PRINT_OPERATROR to do anything */
- if (server_info->utok.uid == 0
+ if (server_info->utok.uid == sec_initial_uid()
|| user_has_privileges(server_info->ptok, &se_printop ) ) {
return True;
}