]> git.ipfire.org Git - thirdparty/systemd.git/commit
chase: drop redundant call of delete_trailing_chars()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Apr 2023 19:50:32 +0000 (04:50 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 11 Apr 2023 07:06:05 +0000 (09:06 +0200)
commit0d68cd72b602edac05b4ae5d17a65ae828e61ff4
treeb5e9e42eb0440bd04784296e9e1b68dbffa70801
parent0f9aca9a9894dd720a96f0663224f6daae4c9cd2
chase: drop redundant call of delete_trailing_chars()

In that branch, 'root' is a non-root and absolute path.
Hence, delete_trailing_chars() does not make the path empty.
And, if the path contains redundant slashes at the end, that will be
dropped by path_simplify().
src/basic/chase.c