fs-util: add new CHASE_STEP flag to chase_symlinks()
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Apr 2018 15:03:45 +0000 (17:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Apr 2018 12:15:48 +0000 (14:15 +0200)
commit49eb36596b72e568d4b9b785cd4544e58c89bdee
tree03e55b73cf100b5a3b6c39c83d926364114505e3
parent12777909c9cbf4217aecbbb38de97bac5252fc5b
fs-util: add new CHASE_STEP flag to chase_symlinks()

If the flag is set only a single step of the normalization is executed,
and the resulting path is returned.

This allows callers to normalize piecemeal, taking into account every
single intermediary path of the normalization.
src/basic/fs-util.c
src/basic/fs-util.h
src/test/test-fs-util.c