From 4f181227e5d53ab3ec17bde135e4316383509b7d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 9 Aug 2001 19:36:12 +0000 Subject: Added fix from Dan Thibadeau @ HP for parsing problem. Jeremy. (This used to be commit 635f3a3ee2704bb593aaa2642be6c5ec00830b64) --- source3/printing/print_svid.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/printing/print_svid.c') diff --git a/source3/printing/print_svid.c b/source3/printing/print_svid.c index 22ddbe70b9..f3573961d9 100644 --- a/source3/printing/print_svid.c +++ b/source3/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 ": ..." */ -- cgit