diff options
author | Günther Deschner <gd@samba.org> | 2004-08-26 21:32:49 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2004-08-26 21:32:49 +0000 |
commit | c7406797d018eef87c4538fe92d1d53b08d356d3 (patch) | |
tree | 73319b4c7c1475c010c5ea65fc11b3ff29060f12 /source/utils/net_rpc_printer.c | |
parent | 68c0ca6e02d100cd83f644cd5f20e76945670d64 (diff) | |
download | samba-c7406797d018eef87c4538fe92d1d53b08d356d3.tar.gz samba-c7406797d018eef87c4538fe92d1d53b08d356d3.tar.xz samba-c7406797d018eef87c4538fe92d1d53b08d356d3.zip |
r2079: Clear the publish-bit from the attributes-mask when migrating
printer-settings. publishing-info is not handled yet.
Guenther
Diffstat (limited to 'source/utils/net_rpc_printer.c')
-rw-r--r-- | source/utils/net_rpc_printer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/utils/net_rpc_printer.c b/source/utils/net_rpc_printer.c index d43b2ed94cf..b414b38a79d 100644 --- a/source/utils/net_rpc_printer.c +++ b/source/utils/net_rpc_printer.c @@ -2095,6 +2095,12 @@ NTSTATUS rpc_printer_migrate_settings_internals(const DOM_SID *domain_sid, const is correctly installed (incl. driver ???) */ init_unistr( &ctr_dst.printers_2->portname, SAMBA_PRINTER_PORT_NAME); + /* check if printer is published -> no publish-migration for the moment */ + if (ctr_enum.printers_2[i].attributes & PRINTER_ATTRIBUTE_PUBLISHED) { + printf("printer on originating server was published, ignoring that\n"); + ctr_dst.printers_2->attributes = PRINTER_ATTRIBUTE_SAMBA; + } + /* copy devmode (info level 2) */ ctr_dst.printers_2->devmode = talloc_memdup(mem_ctx, ctr_enum.printers_2[i].devmode, sizeof(DEVICEMODE)); |