Your message dated Fri, 04 Mar 2016 17:20:04 +0000
with message-id <[email protected]>
and subject line Bug#776154: fixed in base-files 9.6
has caused the Debian Bug report #776154,
regarding base-files: /etc/profile causes warnings with '-o nounset'
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.)


-- 
776154: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776154
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: base-files
Version: 8
Tags: patch

/etc/profile accesses some variables like $BASH and $PS1 that may be
unset, which will produce a warning or error if the (POSIX-standard)
'nounset' option is enabled.  To reproduce, run a login shell with '-u'
from a user account with no custom profile/rc/etc., e.g.,
        $ dash -u -l
        dash: 12: BASH: parameter not set
        $ posh -u -l
        posh: /etc/profile:25: BASH: parameter not set
        $ 
While it's only a warning in these examples, it would be a fatal error
if a non-interactive shell loaded /etc/profile ("A non-interactive shell
shall immediately exit").  Note that POSIX requires shells to accept -u
as a command-line argument, but not -l.

In practice the ${parameter+word} or ${parameter-word} syntaxes can be
used to avoid this problem (POSIX is silent about this, but I think it's
an oversight--it avoids a warning in every tested shell).  A trivial
patch to /etc/profile is attached.

- Michael


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages base-files depends on:
ii  gawk [awk]  1:4.1.1+dfsg-1
ii  mawk [awk]  1.3.3-17

base-files recommends no packages.

base-files suggests no packages.

-- Configuration Files:
/etc/profile 91901ce5707909cfec8b3a1a6efbfa61 [Errno 2] No such file or 
directory: u'/etc/profile 91901ce5707909cfec8b3a1a6efbfa61'

-- no debconf information
--- /etc/profile	2014-10-22 10:02:30.000000000 -0400
+++ profile	2015-01-24 11:51:39.272067172 -0500
@@ -8,8 +8,8 @@
 fi
 export PATH
 
-if [ "$PS1" ]; then
-  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
+if [ "${PS1-}" ]; then
+  if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
     # The file bash.bashrc already sets the default PS1.
     # PS1='\h:\w\$ '
     if [ -f /etc/bash.bashrc ]; then

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: base-files
Source-Version: 9.6

We believe that the bug you reported is fixed in the latest version of
base-files, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <[email protected]> (supplier of updated base-files package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 04 Mar 2016 17:33:40 +0100
Source: base-files
Binary: base-files
Architecture: source
Version: 9.6
Distribution: unstable
Urgency: low
Maintainer: Santiago Vila <[email protected]>
Changed-By: Santiago Vila <[email protected]>
Description:
 base-files - Debian base system miscellaneous files
Closes: 693423 776154
Changes:
 base-files (9.6) unstable; urgency=low
 .
   * Add lintian override for /etc/os-release.
   * Add lintian overrides for /usr/share/common-licenses.
   * Standards-Version: 3.9.7 (no special changes for this).
   * Switch to dh. Hopefully this should make the package easier
     to fork. Closes: #693423.
   * Change default /etc/profile to not warn about possibly undefined
     variables PS1 and BASH. Closes: #776154.
Checksums-Sha1:
 c6ef34d469b39c78bd5f09c3bed063b4d39403c2 1052 base-files_9.6.dsc
 e59cf56a08bd5245644dbdc763491a7a49d034e6 53728 base-files_9.6.tar.xz
Checksums-Sha256:
 f402149afa784750c093d09bb10aa9a9a00d32aaee52eda62f056211a304ebed 1052 
base-files_9.6.dsc
 5cb5339aa852af14653ac187f8baf55f5ad6fc8ee2d903e5a336f0ee556dcf44 53728 
base-files_9.6.tar.xz
Files:
 cfa9b62f668a84e85c87884844a4461a 1052 admin required base-files_9.6.dsc
 1a117a30f65c9b2da1ffb74f604959b7 53728 admin required base-files_9.6.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJW2bwPAAoJEEHOfwufG4syJC8H+gONz6BFImO4OnioR885THvO
X8fvBuF/0YwEX9ffOxfXpm20stQRb1sP1PpfbshWbJpzfSMwQqPB7TlQvtn39cnh
SPYlspyj++WeAJTU+8iwYqXQ4CZQ1zgG5zD3fiMHA3ofNqNn9ov4ZclAY3mLMnN/
BExfvflutEwC3s6oozdU1exxlMNPTmTFcLP/3+Iroydl6v4Tgf/gvxkFytKXYMq0
+bpvXGk8e08fEioFhZ2FQBhy8aDZ816IEgSfLUXVu+ah6CHtT9V1eACON2kHtb3H
frmhMHLcvqcrlhRnXUpKaSVytDulM/gJr4sC2zoiCyhxRjHL+DfryOIYvYYJuhw=
=gVqA
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to