diff options
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | debian/libpam0g.postinst | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index d042825d..242b0382 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,8 @@ pam (1.3.1-3) UNRELEASED; urgency=medium * debian/control: drop redundant priority fields. * Standards-Version 4.3.0. * Restore lintian overrides for hardening false-positives. + * debian/libpam0g.postinst: update the xdm restart handling to cope with + changes to what xdm writes to utmp. Closes: #922239. -- Steve Langasek <vorlon@debian.org> Wed, 13 Feb 2019 05:57:21 +0000 diff --git a/debian/libpam0g.postinst b/debian/libpam0g.postinst index 5e0d63a7..ed133444 100644 --- a/debian/libpam0g.postinst +++ b/debian/libpam0g.postinst @@ -105,7 +105,9 @@ then check="$check sfs-server solid-pop3d squid squid3 tac-plus" check="$check vsftpd wu-ftpd wzdftpd xrdp yardradius yaws" - if ! who | awk '{print $2}'|grep -q ':[0-9]'; then + if [ -n "$(who | awk '$2 ~ /console/ && $NF ~ /:[0-9]/ { print $NF } + $2 ~ /:[0-9]/ { print $2 }')" ] + then check="$check wdm xdm" fi |