Commit cf1c4ae9 authored by Jeremy Allison's avatar Jeremy Allison Committed by Gerald (Jerry) Carter
Browse files

r1241: Fix incorrect type in printer publishing (struct uuid, not UUID_FLAT).

Jeremy.
(This used to be commit a535a059754730d0a5c2fe64ef14708da2ca6b5c)
parent 79277678
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4317,11 +4317,10 @@ static BOOL construct_printer_info_5(Printer_entry *print_hnd, PRINTER_INFO_5 *p
static BOOL construct_printer_info_7(Printer_entry *print_hnd, PRINTER_INFO_7 *printer, int snum)
{
	char *guid_str = NULL;
	UUID_FLAT guid;
	struct uuid guid; 
	
	if (is_printer_published(print_hnd, snum, &guid)) {
		asprintf(&guid_str, "{%s}", 
			 smb_uuid_string_static(smb_uuid_unpack_static(guid)));
		asprintf(&guid_str, "{%s}", smb_uuid_string_static(guid));
		strupper_m(guid_str);
		init_unistr(&printer->guid, guid_str);
		printer->action = SPOOL_DS_PUBLISH;