]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
chase-symlinks: Allow optional path with CHASE_EXTRACT_FILENAME
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 24 Mar 2023 11:21:45 +0000 (12:21 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 24 Mar 2023 12:53:45 +0000 (13:53 +0100)
This allows helpers to set it unconditionally even if the caller
is not interested in the path.

src/basic/chase.c

index 3d423e4f880b0d631bb4749abe427b0ce56ecdf2..e3ee01271e166db324490719faa8a8e7111a2dd6 100644 (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 = ".";