From c9763c3f9bf2260de33f179be164ec2d86334e59 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 13 Feb 2019 20:40:59 +0000 Subject: update xdm restart handling to cope with changes to what xdm writes to utmp Bug-Debian: https://bugs.debian.org/922239 --- debian/libpam0g.postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debian/libpam0g.postinst') 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 -- cgit v1.2.3