s3-printing: use sec_initial_uid() instead "0" in print_access_check().
authorGünther Deschner <gd@samba.org>
Sun, 19 Apr 2009 22:57:53 +0000 (00:57 +0200)
committerGünther Deschner <gd@samba.org>
Sun, 19 Apr 2009 22:59:36 +0000 (00:59 +0200)
Another babystep in order to make us pass RPC-SPOOLSS.

Guenther

source3/printing/nt_printing.c

index f3b938e6ff44a77d813a7d81874eda7a4175adda..b96d64b4bebdcad6bb18f6ad4fe79a7fa9e9b50c 100644 (file)
@@ -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;
        }