aboutsummaryrefslogtreecommitdiff
path: root/cftw.c
Commit message (Collapse)AuthorAgeFilesLines
* ctfw.c: Avoid trailing forward slashXavier Del Campo Romero2023-06-061-1/+2
| | | | | | Otherwise, this would generate strings such as "directory//resource" if dirpath contained a trailing slash, which could be problematic for users relying on ctfw.
* cftw.c: Add missing portability definitionXavier Del Campo Romero2023-05-281-0/+2
|
* cftw.c: Add missing call to closedir(2)Xavier Del Campo Romero2023-03-071-4/+14
|
* Add cftwXavier Del Campo Romero2023-03-061-0/+61
POSIX functions ftw(3) and nftw(3) do not allow passing an opaque pointer to the callback they call, so it forces the use of statically allocated data. ctfw (from "custom ftw") is a custom implementation that solves this, while also removing unneeded stuff. This function will be used by future commits.