condition: check if path is absolute first
authorLennart Poettering <lennart@poettering.net>
Thu, 14 May 2020 07:18:58 +0000 (09:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 May 2020 17:55:56 +0000 (19:55 +0200)
commit841c0987f7c199f06c92e7cc77d61b45fc552389
treed16a448a8c5f021b296d0f4c9204633f3ee03e93
parent34d16bad2d07444dcdae380480f5cc8c5eea8eaa
condition: check if path is absolute first

We should do this check first since it is done on the string itself
without any conditioning of system state otherwise. It is a weird to do
this test only if /etc is read-only.
src/shared/condition.c