]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tmpfiles/tmpfiles.c
tmpfiles: rework condition check
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Apr 2021 15:54:49 +0000 (17:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Apr 2021 09:01:29 +0000 (11:01 +0200)
commit875e7b25d84a111755dab79241c9e64e44836910
treef4856a8ce16871c89a3d7700aa317785dd38a5d1
parentbec890e3cd6dac249cb12ce9430fdb78b6cf546b
tmpfiles: rework condition check

(!a && b) || (a && c) is replaced by (a ? c : b).

path_startswith() != NULL is need to avoid type warning.
src/tmpfiles/tmpfiles.c