]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/sysusers/sysusers.c
sysusers: do not reject non-simplified paths for shell/home
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Aug 2022 13:49:16 +0000 (15:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Aug 2022 10:52:25 +0000 (12:52 +0200)
commiteef74f912528764be3cb1925b8f72ad98f0d99c2
treeefd1d8c6ca4ea550cb8b720e110b038e3b96447d
parent87c696f24707d0785a0626164d0b15a376a6c586
sysusers: do not reject non-simplified paths for shell/home

/home/zbyszek/src/systemd-work/testcase.conf:3: '//sbin//nologin' is not a valid login shell field.

This isn't very useful. The usual argument holds: people use templates to
construct config, so paths may have doubled slashes and similar. Let's simplify
paths so that the value that is pushed to /etc/passwd is nice and clean.
src/sysusers/sysusers.c