chase: fix error handling

Fixes a bug introduced by 63bfd52f48.
This commit is contained in:
Yu Watanabe
2023-04-04 09:20:09 +02:00
committed by Daan De Meyer
parent de2820606d
commit 21eac258f8
+2 -2
View File
@@ -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 != -EDESTADDRREQ)
if (r < 0 && r != -EADDRNOTAVAIL)
return r;
/* If we get EDESTADDRREQ we clear done and it will get reinitialized by the next block. */
/* If we get EADDRNOTAVAIL we clear done and it will get reinitialized by the next block. */
free_and_replace(done, f);
}