s3fs-printing: Fix RAW printing for normal users.
authorAndreas Schneider <asn@samba.org>
Mon, 8 Oct 2012 10:32:49 +0000 (12:32 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 8 Oct 2012 14:11:51 +0000 (16:11 +0200)
This fixes bug #8769.

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Oct  8 16:11:51 CEST 2012 on sn-devel-104

source3/printing/printspoolss.c

index 8a38a7fe7ade6a813a3f142b22a8965d80433139..7a730a55bb0c407ffe94e364d27281cc656592f7 100644 (file)
@@ -163,7 +163,7 @@ NTSTATUS print_spool_open(files_struct *fsp,
 
        status = dcerpc_spoolss_OpenPrinter(b, pf, pf->svcname,
                                            "RAW", devmode_ctr,
-                                           SEC_FLAG_MAXIMUM_ALLOWED,
+                                           PRINTER_ACCESS_USE,
                                            &pf->handle, &werr);
        if (!NT_STATUS_IS_OK(status)) {
                goto done;