]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/pam_systemd.c
pam_logind: skip leading /dev/ from PAM_TTY field before passing it on 6582/head
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Aug 2017 17:04:36 +0000 (19:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Aug 2017 17:04:36 +0000 (19:04 +0200)
commitc9ed61e7a0149a5afff717b1450cdb821d39ab31
tree0468f5e8a9a510bd7f48e36d579de147d4e4c542
parent27458ed62945be0f022ff69348a913793337108d
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_systemd.c