]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
chase: fix error handling
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 1 Apr 2023 12:58:08 +0000 (21:58 +0900)
committerDaan 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

index a037b0b9bed7793567f45272aa5e4f903178a87d..7d87f998f1ea109f54a03ccdd573b048742190d0 100644 (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);
                 }