diff options
author | Jeremy Allison <jra@samba.org> | 2001-08-09 19:36:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-08-09 19:36:12 +0000 |
commit | 635f3a3ee2704bb593aaa2642be6c5ec00830b64 (patch) | |
tree | a4ba60516a4653f221b4f3a9b1fb642a7aff9e86 | |
parent | 1f6e3d18cdf460eb2569b737813f94d22680553e (diff) | |
download | samba-635f3a3ee2704bb593aaa2642be6c5ec00830b64.tar.gz samba-635f3a3ee2704bb593aaa2642be6c5ec00830b64.tar.xz samba-635f3a3ee2704bb593aaa2642be6c5ec00830b64.zip |
Added fix from Dan Thibadeau @ HP for parsing problem.
Jeremy.
-rw-r--r-- | source/printing/print_svid.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 ": ..." */ |