git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
printing: explicitly clear PUBLISHED attribute
[obnox/samba/samba-obnox.git]
/
source3
/
printing
/
nt_printing_ads.c
diff --git
a/source3/printing/nt_printing_ads.c
b/source3/printing/nt_printing_ads.c
index 3a2baf40f5e742c6e446b0e6ab6b764a07fb4a11..86ea8f7a8588aa8a953a54bad01a1b05b882ffde 100644
(file)
--- a/
source3/printing/nt_printing_ads.c
+++ b/
source3/printing/nt_printing_ads.c
@@
-355,7
+355,7
@@
WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
pinfo2->attributes |= PRINTER_ATTRIBUTE_PUBLISHED;
break;
case DSPRINT_UNPUBLISH:
- pinfo2->attributes
^= PRINTER_ATTRIBUTE_PUBLISHED
;
+ pinfo2->attributes
&= (~PRINTER_ATTRIBUTE_PUBLISHED)
;
break;
default:
win_rc = WERR_NOT_SUPPORTED;