git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07f2e19
)
Interim fix for LPRng. If a lpq parsed line start with a space, we skip
author
Jean-François Micouleau
<jfm@samba.org>
Mon, 13 Mar 2000 11:21:03 +0000
(11:21 +0000)
committer
Jean-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
patch
|
blob
|
history
diff --git
a/source/printing/printing.c
b/source/printing/printing.c
index 134a5946300ac6a7cacc23e53850920eb69b6a4f..e4768582a8e5167adc75915af7d8aaea1b3c346e 100644
(file)
--- a/
source/printing/printing.c
+++ b/
source/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