1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

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 12:21:45 +01:00
parent f461a28da7
commit e5f2490200

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 = ".";