]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
path-util: introduce path_simplify()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 31 May 2018 14:39:31 +0000 (23:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 3 Jun 2018 14:39:26 +0000 (23:39 +0900)
commit858d36c1ec7cd1173c60e8ab17b8425325253e38
tree147284bf1b34c8917aa67bfdd2c15f672a0471af
parentaff443013640ba783c89c9032ebd5a557f2fc11e
path-util: introduce path_simplify()

The function is similar to path_kill_slashes() but also removes
initial './', trailing '/.', and '/./' in the path.
When the second argument of path_simplify() is false, then it
behaves as the same as path_kill_slashes(). Hence, this also
replaces path_kill_slashes() with path_simplify().
32 files changed:
src/basic/cgroup-util.c
src/basic/fileio.c
src/basic/mount-util.c
src/basic/path-util.c
src/basic/path-util.h
src/basic/unit-name.c
src/cgls/cgls.c
src/cgtop/cgtop.c
src/core/automount.c
src/core/cgroup.c
src/core/dbus-execute.c
src/core/dbus-path.c
src/core/dbus-socket.c
src/core/load-fragment.c
src/core/manager.c
src/core/mount.c
src/core/path.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/core/unit.c
src/delta/delta.c
src/fstab-generator/fstab-generator.c
src/libsystemd/sd-device/sd-device.c
src/mount/mount-tool.c
src/portable/portable.c
src/shared/conf-parser.c
src/shared/install.c
src/shared/machine-image.c
src/sysusers/sysusers.c
src/test/test-path-util.c
src/tmpfiles/tmpfiles.c