shared/bootspec: use path_make_absolute where appropriate

This commit is contained in:
Mike Yuan
2024-05-14 18:19:19 +08:00
parent 73a8d8b0ca
commit 94e9ae6f53
+1 -4
View File
@@ -79,10 +79,7 @@ static int mangle_path(
assert(ret);
/* Spec leaves open if prefixed with "/" or not, let's normalize that */
if (path_is_absolute(p))
c = strdup(p);
else
c = strjoin("/", p);
c = path_make_absolute(p, "/");
if (!c)
return -ENOMEM;