Your message dated Sun, 06 Nov 2011 01:55:59 +0700
with message-id <[email protected]>
and subject line Re: Bug#191525: mgetty-docs inittab example is
self-contradictory
has caused the Debian Bug report #498819,
regarding doesn't honor $HOME while reading .enscriptrc
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
498819: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498819
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: enscript
Severity: normal
Version: 1.6.4-11
The `enscript' command currently doesn't honor the value of the
HOME environment variable while reading its configuration, and
uses the value from the user's passwd(5) entry instead, contrary
both to its own documentation:
--cut: enscript(1)--
CONFIGURATION FILES
Enscript reads configuration information from the following sources (in
this order): command line options, environment variable ENSCRIPT,
user's personal configuration file ($HOME/.enscriptrc), site configura-
tion file (/etc/enscriptsite.cfg) and system's global configuration
file (/etc/enscript.cfg).
--cut: enscript(1)--
and to the common sense.
$ HOME=/nonexistent strace enscript -o /dev/null /dev/null 2>&1 \
| grep -E enscriptrc
open("/my-home/.enscriptrc", O_RDONLY) = 4
$
May I suggest the following (untested) patch?
--- enscript-1.6.4/src/main.c.~1~ 2008-09-13 21:16:08.915686105 +0700
+++ enscript-1.6.4/src/main.c 2008-09-13 21:17:34.979014862 +0700
@@ -1132,7 +1132,10 @@
(void) read_config (SYSCONFDIR, "enscriptsite.cfg");
/* Personal config. */
- (void) read_config (passwd->pw_dir, ".enscriptrc");
+ {
+ const char *cp = getenv ("HOME");
+ (void) read_config (cp ? cp : passwd->pw_dir, ".enscriptrc");
+ }
/*
* Options.
--- End Message ---
--- Begin Message ---
>>>>> Andreas Barth <[email protected]> writes:
[…]
> The mgetty-Package does not provide any entries in /etc/inittab,
> neither removes them after de-installation. So it should be best to
> remove these four lines.
> But it could be formed as a wishlist-entry that mgetty does one day
> both (as e.g. isdnutils does).
It's my opinion that inittab(5) is such a fragile file that it
shouldn't be touched unless explicitly requested. Given that
editing inittab(5) manually isn't a big deal, I'd suggest
marking this bug with wontfix.
TIA.
--
FSF associate member #7257
pgp70pZYCHfex.pgp
Description: PGP signature
--- End Message ---