[Printing-user-general] LPR control file - RFC1179 clarification

[email protected] (Ryan) Fri, 11 Aug 2006 11:29:49 +0000 (UTC)
Newsgroups gmane.linux.printing.general
Organization http://www.linuxprinting.org/
Message-ID <[email protected]>
I have a question regarding the wording in RFC1179. I suspect the answer will
largely be based on opinion but would appreciate hearing peoples thought on
this none the less.

RFC1179 says:

6.2 02 - Receive control file

      +----+-------+----+------+----+
      | 02 | Count | SP | Name | LF |
      +----+-------+----+------+----+
      Command code - 2
      Operand 1 - Number of bytes in control file
      Operand 2 - Name of control file

   The control file must be an ASCII stream with the ends of lines
   indicated by ASCII LF.  The total number of bytes in the stream is
   sent as the first operand.  The name of the control file is sent as
   the second.  It should start with ASCII "cfA", followed by a three
   digit job number, followed by the host name which has constructed the
   control file.  Acknowledgement processing must occur as usual after
   the command is sent.



Can the full path to the control file (ie. /var/spool/lpd/blah/cfA###XXX) be
included in the "Name" field? Or just the file name (ie. cfA###XXX)?

Personally, I think the RFC doesn't really seem clear on this as it only says
the file name should start with "cfA". Even if the path is included, the
argument can be made the the file name begins with "cfA".

It seems some daemons will produce an error if the full path is included (Ricoh
Aficio 2045), but others will not (HP5550).
Any thoughts?