Your message dated Tue, 17 May 2016 17:23:22 +0000
with message-id <[email protected]>
and subject line Bug#818001: fixed in needrestart 2.8-1
has caused the Debian Bug report #818001,
regarding needrestart: bashisms in /etc/needrestart/notify.d/* prevent proper 
check
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.)


-- 
818001: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818001
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: needrestart
Version: 2.7-1
Severity: normal

$ checkbashisms -f /etc/needrestart/notify.d/600-mail~
possible bashism in /etc/needrestart/notify.d/600-mail~ line 25 (alternative 
test command ([[ foo ]] should be [ foo ])):
if [[ "$NR_NOTIFYD_DISABLE_MAIL" -eq '1' ]]; then

Proposing this:

if [ "$NR_NOTIFYD_DISABLE_MAIL" ] && [ $NR_NOTIFYD_DISABLE_MAIL -eq 1 ]; then

Seems to make the script work as intended.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages needrestart depends on:
ii  dpkg                       1.18.4
ii  gettext-base               0.19.7-2
ii  libintl-perl               1.24-1
ii  libmodule-find-perl        0.13-1
ii  libmodule-scandeps-perl    1.20-1
ii  libproc-processtable-perl  0.53-1+b1
ii  libsort-naturally-perl     1.03-1
ii  libterm-readkey-perl       2.33-1+b1
ii  perl                       5.22.1-8
ii  xz-utils                   5.1.1alpha+20120614-2.1

needrestart recommends no packages.

Versions of packages needrestart suggests:
pn  needrestart-session | libnotify-bin  <none>

-- Configuration Files:
/etc/needrestart/notify.conf changed:
NR_NOTIFYD_DISABLE_MAIL='1'

/etc/needrestart/notify.d/600-mail changed:
MAILX='/usr/bin/mail'
test -x "$MAILX" || exit 1
. /usr/lib/needrestart/notify.d.sh
if [ "$NR_NOTIFYD_DISABLE_MAIL" ] && [ $NR_NOTIFYD_DISABLE_MAIL -eq 1 ]; then
    echo "[$0] disabled in global config" 1>&2
    exit 1
fi
NR_USERID=`id -u "$NR_USERNAME"`
if [ "0$NR_USERID" -gt 0 -a "0$NR_USERID" -lt 1000 ]; then
    echo "[$0] do not notify system-user $NR_USERNAME via mail" 1>&2
    exit 1
fi
echo "[$0] notify user $NR_USERNAME on $NR_SESSION via mail" 1>&2
{
    _NR_FQDN=$(hostname -f)
    eval_gettext 'Your session on host $_NR_FQDN ($NR_SESSION) is running 
obsolete binaries or libraries as listed below.'
    echo
    echo
    gettext "Please consider a relogin or restart of the affected processes!"
    echo
    echo
    cat
} | fold -s -w 72 | "$MAILX" -s "Relogin or restarts on host $(hostname) 
required!" "$NR_USERNAME"


-- no debconf information


Cheers,

--
Cristian

--- End Message ---
--- Begin Message ---
Source: needrestart
Source-Version: 2.8-1

We believe that the bug you reported is fixed in the latest version of
needrestart, 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.
Patrick Matthäi <[email protected]> (supplier of updated needrestart 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: Tue, 17 May 2016 18:54:20 +0200
Source: needrestart
Binary: needrestart
Architecture: source all
Version: 2.8-1
Distribution: unstable
Urgency: medium
Maintainer: Patrick Matthäi <[email protected]>
Changed-By: Patrick Matthäi <[email protected]>
Description:
 needrestart - check which daemons need to be restarted after library upgrades
Closes: 817807 817927 818001 818853 819824
Changes:
 needrestart (2.8-1) unstable; urgency=medium
 .
   * New upstream release.
     - Disable mail notification by default (notify.conf).
     - Restart SysV init services on systemd using systemctl.
       Closes: #818853
     - Add a easy UI mode hiding technical details for non-technical users.
       Closes: #819824
     - Add xendomains to override_rc.
       Closes: #817807
     - Improve getopts parsing to remove "Uknown option:" warnings.
       Closes: #817927
     - Fix bashisms in /etc/needrestart/notify.d/*.
       Closes: #818001
   * Merge 2.7-1~bpo8+1 changelog.
   * Bump Standards-Version to 3.9.8 (no changes required).
   * Add upstream patch 01-getterminalsize-workaround to work around the
     libterm-readkey-perl bug #824564.
Checksums-Sha1:
 f2b6783d1bc363c3dbcbef5dc7f9c84e77e748ce 1744 needrestart_2.8-1.dsc
 4ddb885aa4c24fd05657b95f635cca917887663e 46414 needrestart_2.8.orig.tar.gz
 e8c048c852e3840f885c0f5cf0a162f67323accd 6360 needrestart_2.8-1.debian.tar.xz
 b57b28c4f27e30638dc70678c7c04f3731ff8801 37980 needrestart_2.8-1_all.deb
Checksums-Sha256:
 19d80259f153066dc728f34c5bf27ce91d5cb8cffd26954e20efdc7c1fd63315 1744 
needrestart_2.8-1.dsc
 77892ad5b8873a9218d106f3b95767f008d351ebba3e3ca31b12c0189376ec85 46414 
needrestart_2.8.orig.tar.gz
 4a7b501480c7b07cc473091ddcd92556c4852d0c7756073132a8c30e44bf0ced 6360 
needrestart_2.8-1.debian.tar.xz
 152f13d019309961ef3cb00bca54576dc7297527b75895a1db5e4159c4f56c76 37980 
needrestart_2.8-1_all.deb
Files:
 66b71d2dd4bc05d23bd1549ae5d36b31 1744 admin optional needrestart_2.8-1.dsc
 0b73b910b31d36c59cf7b2d78cf0d766 46414 admin optional 
needrestart_2.8.orig.tar.gz
 5fd8651ff68629d460bcf458558c029c 6360 admin optional 
needrestart_2.8-1.debian.tar.xz
 440350dcbb23425bf464324561d54945 37980 admin optional needrestart_2.8-1_all.deb

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

iQIcBAEBCAAGBQJXO02AAAoJEBLZsEqQy9jkqDAP/1603Uqfpsw2fxvIBkihuYxk
iCyJVJ3t4Peg0sKgGdNacMfEbR+MgM1qtcSokXMZnm4c7KPP00Z7MC4oOaXIuNdC
hIUT6kp2uiGu0Q/NkU4SQEzUTTKWAgUNkkeKyX8XZcmuw1MbxtN8gBz7bEpnv/In
CvAWLJza20qYPCcuigAIza0J+WvYBHdLjTczFniaWieNLglJ7qGaaNGOKDiFt2q9
bX8WhA3vge+EuHHddc/SDFAnc0LitUFgrw6XVPsCP2x7YLBKmQp/DtRT3QehE9mp
tcW4dgAHX+HwMuc9zKMvxcHuXewJgdltaT5TBl5eObx9v0z6gN/K4foCf9h+Jw6l
DNCdc5mhcda714LSmEnHu+yhJWJPUHHgKlTocZjJ4BSuYjfyO7OhjwdwySzBJMy6
xUJHHRBh0m0aA+1D6QPkFVXZ0oj/G//05xBaSLkmzqZx+X7X9e+EbL3mQ9L4bSum
PcEbNZBtnxvImNn0KyPv9ihaFaacPiUFijfCG0p0umAA8f0Cg0qWactEMooF9BfX
rgcNVFIL43Rbmzyy64oMWAznWzwekvPKlAL6L/CBLQd6KZKHfxopyp3TV/cJjCSd
/QxQ9zO8DE0tvvs8OM2VRWBLRmGOXlwIlDyGauotgTY+UIgH8OlKkdCMwm1qKR3V
rp+eperQpo6KSi3Euzwf
=bkqK
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to