NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/48581: a2ps (or maybe apsfilter?) misunderstands directory settings
>Number: 48581
>Category: misc
>Synopsis: a2ps (or maybe apsfilter?) misunderstands directory settings
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 09 02:40:00 +0000 2014
>Originator: Zbigniew
>Release: 6.1.3
>Organization:
>Environment:
Newest stable release 6.1.3 - and a2ps/apsfilter compiled from sources for this
release.
>Description:
An attempt to print any text file using a2ps + apsfilter doesn't result in any
printout; instead there is an error message in /var/spool/lpd/aps1/log:
"/usr/pkg/etc/apsfilter/basedir/bin/apsfilter: cannot open
/var/spool/lpd/aps1/acct/lock: no such file"
After closer examination it turned out, that a2ps (or maybe apsfilter, but this
is less likely) somehow messes the files/directories settings, and therefore
it's unable to use proper files/directories.
My printcap:
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
aps1|lj5gray;r=600x600;q=photo;c=full;p=a4;m=auto:\
:lp=/dev/ulpt0:\
:if=/usr/pkg/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/aps1:\
:lf=/var/spool/lpd/aps1/log:\
:af=/var/spool/lpd/aps1/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this
As you see from error message, a2ps insists on treating "acct" like a
sub-directory, while in fact it is a file.
>How-To-Repeat:
1. Configure and start lpd.
2. Install a2ps and apsfilter.
3. Configure printer using its SETUP script.
4. Try to print any ASCII text file, for example with:
"a2ps -2 -P <queue name> <text file name>".
5. Examine the log.
>Fix:
Home |
Main Index |
Thread Index |
Old Index