path-lookup: refactor lookup_paths_init() search paths handling
authorMike Yuan <me@yhndnzj.com>
Sat, 7 Sep 2024 17:12:58 +0000 (19:12 +0200)
committerMike Yuan <me@yhndnzj.com>
Sun, 6 Oct 2024 17:42:39 +0000 (19:42 +0200)
commit5ce4902249e4f10d65022f097d8b7ac0348f3f4f
treec084b0d33ac4761b52dd5bfe732933477d6dc290
parent1f8eedba9d9b2c81455c788d0edca2146d5f30a4
path-lookup: refactor lookup_paths_init() search paths handling

* Rename user_dirs() -> user_unit_search_dirs() and port to
  user_search_dirs()
* Use STRV_IFNOTNULL to guard paths that could be NULL,
  assert otherwise
src/libsystemd/sd-path/path-lookup.c