Interim fix for LPRng. If a lpq parsed line start with a space, we skip
authorJean-François Micouleau <jfm@samba.org>
Mon, 13 Mar 2000 11:21:03 +0000 (11:21 +0000)
committerJean-François Micouleau <jfm@samba.org>
Mon, 13 Mar 2000 11:21:03 +0000 (11:21 +0000)
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.

source/printing/printing.c

index 134a5946300ac6a7cacc23e53850920eb69b6a4f..e4768582a8e5167adc75915af7d8aaea1b3c346e 100644 (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