projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de28206
)
chase: fix error handling
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 1 Apr 2023 12:58:08 +0000
(21:58 +0900)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Tue, 4 Apr 2023 07:20:09 +0000
(09:20 +0200)
Fixes a bug introduced by
63bfd52f48a772c86ff84e3a1ba1fcd19e0008f8
.
src/basic/chase.c
patch
|
blob
|
history
diff --git
a/src/basic/chase.c
b/src/basic/chase.c
index a037b0b9bed7793567f45272aa5e4f903178a87d..7d87f998f1ea109f54a03ccdd573b048742190d0 100644
(file)
--- a/
src/basic/chase.c
+++ b/
src/basic/chase.c
@@
-417,10
+417,10
@@
int chaseat(int dir_fd, const char *path, ChaseFlags flags, char **ret_path, int
_cleanup_free_ char *f = NULL;
r = path_extract_filename(done, &f);
- if (r < 0 && r != -E
DESTADDRREQ
)
+ if (r < 0 && r != -E
ADDRNOTAVAIL
)
return r;
- /* If we get E
DESTADDRREQ
we clear done and it will get reinitialized by the next block. */
+ /* If we get E
ADDRNOTAVAIL
we clear done and it will get reinitialized by the next block. */
free_and_replace(done, f);
}