I've been doing a bit more testing on this...

> Slightly more information on this.  There definitely seems to be
> some sort of problem with LPRng getting printcap info from a file.

Oops, that should have read "from a program".

A bit more information here...

Digging through the code a bit, I can see that the cause of this...

2004-03-24-15:38:32.443 pancakes Init_tempfile: bad tempdir '/var/spool/lpd/%P'

... is in Init_tempfile in linelist.c:

        if( Is_server ){
                if( dir == 0 )  dir = Spool_dir_DYN;      <-----
                if( dir == 0 )  dir = Server_tmp_dir_DYN;
        } else {
                dir = getenv( "LPR_TMP" );
                if( dir == 0 ) dir = Default_tmp_dir_DYN;
        }

So, 'dir' is being set to the value of Spool_dir_DYN, which has been
set to '/var/spool/lpd/%P', which obviously isn't a valid directory
name.

If I just comment out this line then LPRng seems to work OK with
getting data from a program, at least initially, but obviously this
isn't an ideal long-term solution.

Toby


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