summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-03-13 11:21:03 +0000
committerJean-François Micouleau <jfm@samba.org>2000-03-13 11:21:03 +0000
commit6e11f213782361a6d96d442814f83fc148d331fc (patch)
tree13efcd8a5417ef466b4adf65221bb874eec5e4ca /source3/printing
parent79bfb14318423f5a26a4d0dc6fc6faa62b1401f8 (diff)
downloadsamba-6e11f213782361a6d96d442814f83fc148d331fc.tar.gz
samba-6e11f213782361a6d96d442814f83fc148d331fc.tar.bz2
samba-6e11f213782361a6d96d442814f83fc148d331fc.zip
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)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 134a594630..e4768582a8 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