]> git.ipfire.org Git - thirdparty/systemd.git/commit
inhibit: cut off overly long "who" fields 18518/head
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Feb 2021 14:03:46 +0000 (15:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Feb 2021 14:06:25 +0000 (15:06 +0100)
commit619b0c077cbb12b85c9d752779095b99cfd2c66c
tree80d1382d662d4c4bb35cb527a078a5c3f1fbeff4
parent2cd9f773e29873df1b9f9b09c6c4f78853b16215
inhibit: cut off overly long "who" fields

systemd-inhibit when invoked with a command line will put the whole
command line in the "who" field of the inhibitor lock. This can get
extremely long for shell expressions, making the table "systemd-inhibit
--list" shows ridiculously weirdly formatted. Let's put a limit on the
column width: half of the screen, not more.
src/login/inhibit.c