From 635f3a3ee2704bb593aaa2642be6c5ec00830b64 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 9 Aug 2001 19:36:12 +0000 Subject: [PATCH] Added fix from Dan Thibadeau @ HP for parsing problem. Jeremy. --- source/printing/print_svid.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 ": ..." */