diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-01 10:53:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-10-01 11:02:11 +0200 |
commit | 14eb3285ab5b22064b34255fda17599656f05308 (patch) | |
tree | 73c7d7c14d4fc97d04848b3c5351573cac6d8bd8 /coccinelle | |
parent | execute: add helper for checking if root_directory/root_image are set in Exec... (diff) | |
download | systemd-14eb3285ab5b22064b34255fda17599656f05308.tar.xz systemd-14eb3285ab5b22064b34255fda17599656f05308.zip |
execute: use empty_to_root() a bit more
Diffstat (limited to 'coccinelle')
-rw-r--r-- | coccinelle/empty-to-root.cocci | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coccinelle/empty-to-root.cocci b/coccinelle/empty-to-root.cocci index 45627c9801..3720497bef 100644 --- a/coccinelle/empty-to-root.cocci +++ b/coccinelle/empty-to-root.cocci @@ -9,3 +9,8 @@ expression s; @@ - (empty_or_root(s) ? "/" : s) + empty_to_root(s) +@@ +expression s; +@@ +- (s ? s : "/") ++ empty_to_root(s) |