1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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 commit is contained in:
Jean-François Micouleau 0001-01-01 00:00:00 +00:00
parent 07f2e194ba
commit 2b1663ec13

View File

@ -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