Package: lprng
Version: 3.8.10-1
Severity: normal

Somewhere between (Debian) potato's 3.6.12-8 and woody's 3.8.10-1,
shell script input filters can no longer write to file descriptor 3,
which the documentation still states is attached to the accounting
file if specified.  This breaks lprfax, for example.

Here is the input filter:

#!/bin/bash

. /usr/lib/lprfax/init

Script_Init $@

Erun $REMOVE fax-filter

PAGES=$(ls -1 *.g3)
NPAGES=$(echo $PAGES | wc -w)
Erun $REMOVE [ $NPAGES -gt 0 ]

Erun $REMOVE $JOIN $PAGES
Erun $ABORT echo $JOB $NPAGES >&3

exit 0


Here is the printcap entry:

.global:\
        :save_on_error:\
        :sd=/var/spool/lpd/%P:\
        :lf=:\
        :af=:\
        :pw=80:\
        :pl=66:\
        :px=1440:\
        :mx=0:\
        :mc#0:


fax:\
        :server:\
        :tc=.global:\
        :lpd_bounce:\
        :lp=faxint@localhost:\
        :af=acct:\
        :ab:\
        :pl=61:\
        :pr=/usr/bin/pr -l 61 -o 0 -h $-f:\
        :if=/usr/lib/lprfax/input-filter:\
        :be=/usr/lib/lprfax/fp-filter:\
        :hl:

Here is a typical accounting file entry with the old lprng:

jobstart '-Hintech19.enhanced.com' '-ncamm' '-Pfax' '-kcfA289intech19.enhanced.com' 
'-b13583' '-t2002-10-17-13:55:09.000' '-CA' '-JMaguire_Camm_off' 
289 1
jobend '-Hintech19.enhanced.com' '-ncamm' '-Pfax' '-kcfA289intech19.enhanced.com' 
'-b13583' '-t2002-10-17-13:55:11.000' '-CA' '-JMaguire_Camm_off' 


Here is what happens now:
jobstart '-Hintech19.enhanced.com' '-ncamm' '-Pfax' '-kcfA782intech19.enhanced.com' 
'-b13583' '-t2002-10-17-12:49:23.000' '-CA' '-JMaguire_Camm_off' 
jobend '-Hintech19.enhanced.com' '-ncamm' '-Pfax' '-kcfA782intech19.enhanced.com' 
'-b13583' '-t2002-10-17-12:49:25.000' '-CA' '-JMaguire_Camm_off' 


Take care,

-- 
Camm Maguire                                            [EMAIL PROTECTED]
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to