From: Jeremy Allison Date: Thu, 9 Aug 2001 19:36:12 +0000 (+0000) Subject: Added fix from Dan Thibadeau @ HP for parsing problem. X-Git-Tag: samba-2.2.5pre1~1679^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=635f3a3ee2704bb593aaa2642be6c5ec00830b64;p=thirdparty%2Fsamba.git Added fix from Dan Thibadeau @ HP for parsing problem. Jeremy. --- diff --git a/source/printing/print_svid.c b/source/printing/print_svid.c index 22ddbe70b95..f3573961d9f 100644 --- a/source/printing/print_svid.c +++ b/source/printing/print_svid.c @@ -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 ": ..." */