git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca4cec0
)
s3-printing: Fix "printer admin" functionality.
author
Jeremy Allison
<jra@samba.org>
Thu, 18 Mar 2010 10:21:15 +0000
(11:21 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 6 May 2010 12:08:33 +0000
(14:08 +0200)
Fix bug #7255 ("printer admin" parameter does not work as expected).
(cherry picked from commit
0d6d068bc4f76c2816f969fcce6013e1945794d4
)
(cherry picked from commit
e74ced9f90ade37fa7bd179a91803f775c77e25b
)
(cherry picked from commit
a99d9e7678de17486bf34320ef0fda071b24197a
)
source3/printing/nt_printing.c
patch
|
blob
|
history
diff --git
a/source3/printing/nt_printing.c
b/source3/printing/nt_printing.c
index afb34061412cfd12830f88d44bda4bbce2396a7c..30905fc4d9b4a60037cf397638924ff083809d3a 100644
(file)
--- a/
source3/printing/nt_printing.c
+++ b/
source3/printing/nt_printing.c
@@
-5734,7
+5734,7
@@
bool print_access_check(struct auth_serversupplied_info *server_info, int snum,
/* see if we need to try the printer admin list */
- if (
(access_granted == 0
) &&
+ if (
!NT_STATUS_IS_OK(status
) &&
(token_contains_name_in_list(uidtoname(server_info->utok.uid),
NULL, NULL, server_info->ptok,
lp_printer_admin(snum)))) {