projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f461a28
)
chase-symlinks: Allow optional path with CHASE_EXTRACT_FILENAME
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Fri, 24 Mar 2023 11:21:45 +0000
(12:21 +0100)
committer
Daan 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
patch
|
blob
|
history
diff --git
a/src/basic/chase.c
b/src/basic/chase.c
index 3d423e4f880b0d631bb4749abe427b0ce56ecdf2..e3ee01271e166db324490719faa8a8e7111a2dd6 100644
(file)
--- 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 = ".";