]> git.ipfire.org Git - thirdparty/systemd.git/commit
chase: replace path_prefix_root_cwd() with chaseat_prefix_root()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 Apr 2023 15:09:54 +0000 (00:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Apr 2023 18:38:59 +0000 (03:38 +0900)
commit60e761d8f3e14ebbadb26f2e2ca2c225f97660ef
treee3f14f1e8428ce6bbaa7732e703d07513754d238
parent8d3c49b1680a20ae5d157baa4adaa59c1ea33519
chase: replace path_prefix_root_cwd() with chaseat_prefix_root()

The function path_prefix_root_cwd() was introduced for prefixing the
result from chaseat() with root, but
- it is named slightly generic,
- the logic is different from what chase() does.

This makes the name more explanative and specific for the result of the
chaseat(), and make the logic consistent with chase().

Fixes https://github.com/systemd/systemd/pull/27199#issuecomment-1511387731.

Follow-up for #27199.
src/basic/chase.c
src/basic/chase.h
src/basic/os-util.c
src/basic/path-util.c
src/basic/path-util.h
src/shared/find-esp.c
src/test/test-chase.c
src/test/test-path-util.c