Package: hibernate
Version: 2.0+15+g88d54a8-1
Severity: normal
Tags: patch

Dear Maintainer,

/usr/sbin/hibernate tries hard to run under dash.

    /usr/share/hibernate/scriptlets.d/ssh_and_gpg_agents
uses in ClearGPGAgents:
    vecho 2 "kill -SIGHUP ${clearagentspid}"
    kill -SIGHUP ${clearagentspid}
. This works in bash, but doesn't work in dash, which causes
hibernate to abort.


dash, bash and zsh however accept the
    kill -s HUP $PID
syntax:

diff -Nur a/usr/share/hibernate/scriptlets.d/ssh_and_gpg_agents 
b/usr/share/hibernate/scriptlets.d/ssh_and_gpg_agents
--- a/usr/share/hibernate/scriptlets.d/ssh_and_gpg_agents       2013-03-25 
15:03:32.000000000 +0100
+++ b/usr/share/hibernate/scriptlets.d/ssh_and_gpg_agents       2013-03-25 
15:03:13.000000000 +0100
@@ -68,8 +68,8 @@
        # ssh-agents are not associated to a tty
        for clearagentspid in $(ps t - | gawk '/[g]pg-agent --daemon/ {print 
$1}') ; do
                # gpg-agents forget the passphrases when a SIGHUP is sent to 
them
-               vecho 2 "kill -SIGHUP ${clearagentspid}"
-               kill -SIGHUP ${clearagentspid}
+               vecho 2 "kill -s HUP ${clearagentspid}"
+               kill -s HUP ${clearagentspid}
        done
 }
 

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hibernate depends on:
ii  dpkg  1.16.9
ii  kbd   1.15.3-9

Versions of packages hibernate recommends:
ii  dash     0.5.7-3
ii  hdparm   9.39-1+b1
ii  uswsusp  1.0+20110509-3
ii  vbetool  1.1-2

Versions of packages hibernate suggests:
pn  915resolution  <none>
ii  kscreensaver   4:4.8.4-5
ii  xscreensaver   5.15-3

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to