diff options
author | David Disseldorp <ddiss@samba.org> | 2013-05-29 10:43:32 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-06-03 14:10:07 +0200 |
commit | f9b6b09e4e4e15257ce0a21caa46e26e119667d4 (patch) | |
tree | c0ce6f3fc0aba862b94995b374a21d67aed2797e /source3/printing | |
parent | 1f269fcc6e2bb46b765d547eb1add2bc52272c47 (diff) | |
download | samba-f9b6b09e4e4e15257ce0a21caa46e26e119667d4.tar.gz samba-f9b6b09e4e4e15257ce0a21caa46e26e119667d4.tar.bz2 samba-f9b6b09e4e4e15257ce0a21caa46e26e119667d4.zip |
printing: explicitly clear PUBLISHED attribute
Currently nt_printer_publish(DSPRINT_UNPUBLISH) flips (via xor) the
info2->attributes PRINTER_ATTRIBUTE_PUBLISHED flag, rather than
explicitly clearing it.
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing_ads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c index 3a2baf40f5..86ea8f7a85 100644 --- 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; |