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>
Thu, 13 Jan 2022 09:46:56 +0000 (10:46 +0100)
commitf5627f4d84973c1d0f1758fcb13c0d5b4b34bc6a
tree9a331a7d1166b574b0e16e84b7a9c6a528a2b3bb
parent82159fe935e66ea137eb5f20b1b82e07b6487149
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)
(cherry picked from commit 09534e85b5c51c664077637e7e8c7c68dec52972)
src/core/execute.c