]> git.ipfire.org Git - thirdparty/systemd.git/commit
utmp: remove /dev from line
authorVincent Bernat <vincent@bernat.ch>
Mon, 18 Oct 2021 18:58:43 +0000 (20:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Oct 2021 07:21:54 +0000 (09:21 +0200)
commit33331d116db2eaf1189ea56ee4b36540179ac3dd
treee780ee21e9bbf1c0f2c0c921a7571214af35e15f
parent07721d1380cc95072d9039adf9a922433d814730
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`.
src/core/execute.c