chase-symlinks: Allow optional path with CHASE_EXTRACT_FILENAME

This allows helpers to set it unconditionally even if the caller
is not interested in the path.
This commit is contained in:
Daan De Meyer
2023-03-24 13:53:45 +01:00
parent f461a28da7
commit e5f2490200
-3
View File
@@ -100,9 +100,6 @@ int chaseat(
if ((flags & CHASE_STEP))
assert(!ret_fd);
if ((flags & CHASE_EXTRACT_FILENAME))
assert(ret_path);
if (isempty(path))
path = ".";