From e5f2490200e37b8cc5f8f9b11bd34222be6db90c Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 24 Mar 2023 12:21:45 +0100 Subject: [PATCH] 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. --- src/basic/chase.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/basic/chase.c b/src/basic/chase.c index 3d423e4f88..e3ee01271e 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 = ".";