]> Kevux Git Server - fll/commit
Regression: Parent directory in recursion does not get processed properly.
authorKevin Day <Kevin@kevux.org>
Sun, 13 Apr 2025 02:20:42 +0000 (21:20 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 13 Apr 2025 02:24:48 +0000 (21:24 -0500)
commit3673fd29a8505ca47c1d1e79e69dbb49c2f8bdf8
treec55f69775c3cc0d7e4e07d65bc361e75482724d1
parentc95d83ffe72f3ffaa247819c2cbb0bd942ebd599
Regression: Parent directory in recursion does not get processed properly.

The commit 8df0301badf6f38fcb4ddf73318e02708ad344f7 fixed a problem with the parent directory not being processed at all.
It failed to handle the situation where the child directory alters the path to append itself.

Save the parent directory path and then restore it after processing the child directory.

Many POSIX libc functions work on NULL termination where possible.
Make sure a NULL termination exists after restoring the path.
level_1/fl_directory/c/private-directory.c