NetBSD Problem Report #48581
From www@NetBSD.org Sun Feb 9 02:35:59 2014
Received: from mail.netbsd.org (mail.netbsd.org [220.127.116.11])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 6DAB9A6159
for <gnats-bugs@gnats.NetBSD.org>; Sun, 9 Feb 2014 02:35:59 +0000 (UTC)
Date: Sun, 9 Feb 2014 02:35:57 +0000 (UTC)
Subject: a2ps (or maybe apsfilter?) misunderstands directory settings
>Synopsis: a2ps (or maybe apsfilter?) misunderstands directory settings
>Arrival-Date: Sun Feb 09 02:40:00 +0000 2014
>Last-Modified: Sun Feb 09 09:19:07 +0000 2014
Newest stable release 6.1.3 - and a2ps/apsfilter compiled from sources for this release.
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.
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
# 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.
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.
Responsible-Changed-When: Sun, 09 Feb 2014 09:19:07 +0000
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.