chiark / gitweb /
util: properly handle the root dir in PATH_FOREACH_PREFIX
authorLennart Poettering <lennart@poettering.net>
Thu, 26 Sep 2013 17:58:33 +0000 (19:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Sep 2013 18:20:30 +0000 (20:20 +0200)
commite203f7c3ad6a95dfa6179e30904ce0432ea0de91
treea9c9dc977839311c525d19c90c5fb3827045dbc1
parentbaa89da40a1d42242c9c62603501ada7e9e52613
util: properly handle the root dir in PATH_FOREACH_PREFIX

Also add PATH_FOREACH_PREFIX_MORE which includes the specified dir
itself in the iteration
src/shared/path-util.h
src/test/test-path-util.c