1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r2079: Clear the publish-bit from the attributes-mask when migrating

printer-settings. publishing-info is not handled yet.

Guenther
(This used to be commit 1d76adb93c98857ed3460db241847e423c021a99)
This commit is contained in:
Günther Deschner 2004-08-26 21:32:49 +00:00 committed by Gerald (Jerry) Carter
parent df5ee6a6ba
commit f5a2dd73da

View File

@ -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));