diff options
author | Steve Langasek <steve.langasek@canonical.com> | 2019-02-13 20:40:59 +0000 |
---|---|---|
committer | Steve Langasek <steve.langasek@canonical.com> | 2019-02-13 20:41:19 +0000 |
commit | c9763c3f9bf2260de33f179be164ec2d86334e59 (patch) | |
tree | e6a4f642440cc81e0060b8097ecaf2efd26bf266 /debian/libpam0g.postinst | |
parent | 113c6fa4ff6b13a3ce03187b5eab8be27932b42e (diff) | |
download | pam-c9763c3f9bf2260de33f179be164ec2d86334e59.tar.gz pam-c9763c3f9bf2260de33f179be164ec2d86334e59.tar.bz2 pam-c9763c3f9bf2260de33f179be164ec2d86334e59.zip |
update xdm restart handling to cope with changes to what xdm writes to utmp
Bug-Debian: https://bugs.debian.org/922239
Diffstat (limited to 'debian/libpam0g.postinst')
-rw-r--r-- | debian/libpam0g.postinst | 4 |
1 files changed, 3 insertions, 1 deletions
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 |