From: Yu Watanabe Date: Sat, 1 Apr 2023 12:58:08 +0000 (+0900) Subject: chase: fix error handling X-Git-Tag: v254-rc1~820 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21eac258f8572bb49566a66723ad2d227b54f350;p=thirdparty%2Fsystemd.git chase: fix error handling Fixes a bug introduced by 63bfd52f48a772c86ff84e3a1ba1fcd19e0008f8. --- diff --git a/src/basic/chase.c b/src/basic/chase.c index a037b0b9bed..7d87f998f1e 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); }