From d9aaf3759ac7fd6ce07a347a0138bdfb27a6f929 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 20 Apr 2009 00:57:53 +0200 Subject: s3-printing: use sec_initial_uid() instead "0" in print_access_check(). Another babystep in order to make us pass RPC-SPOOLSS. Guenther --- source3/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit