chase-symlinks: Add CHASE_EXTRACT_FILENAME flag
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 Mar 2023 17:37:55 +0000 (18:37 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 21 Mar 2023 15:08:29 +0000 (16:08 +0100)
commit63bfd52f48a772c86ff84e3a1ba1fcd19e0008f8
tree088c6e9cd920a88ec111a8536c302ce4c6b802d3
parentaea3ca36135aeb74ea38e7538c710d92b37f479d
chase-symlinks: Add CHASE_EXTRACT_FILENAME flag

Useful in combination with CHASE_PARENT to get a directory file
descriptor to the parent directory of the resolved path and the
filename of the resolved path in the parent directory (which might
not be the same as the filename of the input path because of symlinks).
src/basic/chase-symlinks.c
src/basic/chase-symlinks.h
src/test/test-fs-util.c