chiark / gitweb /
pam_logind: skip leading /dev/ from PAM_TTY field before passing it on
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Aug 2017 17:04:36 +0000 (19:04 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 9 Aug 2017 17:04:36 +0000 (19:04 +0200)
commit63e7758940d27499845c3e45b61e39c47efdc8c3
tree69295c3c2fe537c60a4513cd4184fbdb59fc225e
parent6e076a5acab532181c345d4c9846115b61699b19
pam_logind: skip leading /dev/ from PAM_TTY field before passing it on

Apparently, PAM documents that the PAM_TTY should come with a /dev
prefix, but we don't expect it so far, except that Wayland ends up
setting it after all, the way the docs suggest. Hence, let's simply drop
the /dev prefix if it is there.

Fixes: #6516
src/login/pam_elogind.c