From 6e11f213782361a6d96d442814f83fc148d331fc Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Mon, 13 Mar 2000 11:21:03 +0000 Subject: Interim fix for LPRng. If a lpq parsed line start with a space, we skip it, to prevent false status return value. Jeremy, it's a gross hack but you should consider it for 2.0.7 also. J.F. (This used to be commit 2b1663ec13d9c481fb535c757744068919201f6a) --- source3/printing/printing.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/printing') diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 134a5946300..e4768582a8e 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -937,6 +937,14 @@ static BOOL parse_lpq_entry(int snum,char *line, if (p) *p = 0; } + /* in the LPRNG case, we skip lines starting by a space.*/ + if (line && !ret && (lp_printing(snum)==PRINT_LPRNG) ) + { + if (line[0]==' ') + return ret; + } + + if (status && !ret) { /* a few simple checks to see if the line might be a -- cgit