chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitdf4fe5c7fc39a5241713516cc3ab12449b3e5459
treeae8564d078d277171efd7d163ef09fb8fe0b164d
parent716268fa6f3b5d2d385c6efd969fa209125f256c
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