utmp: remove /dev from line
authorVincent Bernat <vincent@bernat.ch>
Mon, 18 Oct 2021 18:58:43 +0000 (20:58 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Nov 2021 14:01:29 +0000 (15:01 +0100)
commit09534e85b5c51c664077637e7e8c7c68dec52972
tree2e32e2703de1fa83838fbf77aec8a9993690508e
parentcadd70e1825a49bae70e132b3fb763d429b43458
utmp: remove /dev from line

utmp(5) says `ut_line` is the device name minus the leading "/dev/". Therefore,
remove it. Without that, when using UtmpMode=user, we get `/dev/tty` in the
output of `last`/`w`.

(cherry picked from commit 33331d116db2eaf1189ea56ee4b36540179ac3dd)
src/core/execute.c