1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Added fix from Dan Thibadeau @ HP for parsing problem.

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 1f6e3d18cd
commit 635f3a3ee2

View File

@ -71,6 +71,19 @@ static void populate_printers(void)
tmp=strchr_m(tmp, ' ');
tmp++;
}
/* Eat whitespace. */
while(*tmp == ' ')
++tmp;
/*
* On HPUX there is an extra line that can be ignored.
* d.thibadeau 2001/08/09
*/
if(!strncmp("remote to",name,9))
continue;
name = tmp;
/* truncate the ": ..." */