mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Merge from appliance-head
This commit is contained in:
parent
9328bc7b8a
commit
6d39df7cf8
@ -2080,7 +2080,11 @@ static BOOL construct_printer_info_2(fstring servername, PRINTER_INFO_2 *printer
|
||||
else
|
||||
fstrcpy(sl, '\0');
|
||||
|
||||
snprintf(chaine2, sizeof(chaine)-1, "%s%s%s", servername, sl, ntprinter->info_2->printername);
|
||||
if (!strchr(ntprinter->info_2->printername, '\\')) {
|
||||
snprintf(chaine2, sizeof(chaine)-1, "%s%s%s", servername, sl, ntprinter->info_2->printername);
|
||||
} else {
|
||||
pstrcpy(chaine2, ntprinter->info_2->printername);
|
||||
}
|
||||
|
||||
init_unistr(&printer->servername, chaine); /* servername*/
|
||||
init_unistr(&printer->printername, chaine2); /* printername*/
|
||||
|
Loading…
Reference in New Issue
Block a user