From: Daan De Meyer Date: Fri, 24 Mar 2023 11:21:45 +0000 (+0100) Subject: chase-symlinks: Allow optional path with CHASE_EXTRACT_FILENAME X-Git-Tag: v254-rc1~913^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5f2490200e37b8cc5f8f9b11bd34222be6db90c;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/basic/chase.c b/src/basic/chase.c index 3d423e4f880..e3ee01271e1 100644 --- a/src/basic/chase.c +++ b/src/basic/chase.c @@ -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 = ".";