]> git.ipfire.org Git - thirdparty/systemd.git/commit
path-util: use path_find_first_component() in path_make_relative()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 1 May 2021 20:53:14 +0000 (05:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 May 2021 04:41:23 +0000 (13:41 +0900)
commitfe69c41ee80920714b13c958cb180cce03f4098e
treed234fc6073e90dde4d282f2efbb2653e2790f8eb
parent63f11e354a3e5d64ee4cabb7bb584307d237fee4
path-util: use path_find_first_component() in path_make_relative()

This also makes the function checks the result is a valid path or not.
src/basic/path-util.c
src/basic/path-util.h
src/test/test-path-util.c