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 | 4f181227e5d53ab3ec17bde135e4316383509b7d (patch) | |
tree | 03e2a6d858ad2cdf3ed4d15dff9170318b1e4047 | |
parent | 541f2b73bcb1621f6660266a0165a3d4f3aee521 (diff) | |
download | samba-4f181227e5d53ab3ec17bde135e4316383509b7d.tar.gz samba-4f181227e5d53ab3ec17bde135e4316383509b7d.tar.bz2 samba-4f181227e5d53ab3ec17bde135e4316383509b7d.zip |
Added fix from Dan Thibadeau @ HP for parsing problem.
Jeremy.
(This used to be commit 635f3a3ee2704bb593aaa2642be6c5ec00830b64)
-rw-r--r-- | source3/printing/print_svid.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 ": ..." */ |