]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
find-esp: call the right function
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Sep 2022 09:08:50 +0000 (11:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Sep 2022 16:12:25 +0000 (18:12 +0200)
We want the parent dir here, let's fix that.

src/shared/find-esp.c

index d21b6742b9b6b1d5eb23dee278da9608f983366b..6408286a5ba8493e1afa3d736c59245c10d3aa32 100644 (file)
@@ -279,7 +279,7 @@ static int verify_fsroot_dir(
                          * directly instead. It's not as good, due to symlinks and such, but we can't do
                          * anything better here. */
 
-                        r = path_extract_filename(path, &parent);
+                        r = path_extract_directory(path, &parent);
                         if (r < 0)
                                 return log_error_errno(r, "Failed to extract parent path from '%s': %m", path);