diff --git a/src/basic/chase.c b/src/basic/chase.c index a037b0b9be..7d87f998f1 100644 --- 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 != -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); }