From 94e9ae6f533133d2055726aa3223e3da419b4164 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 14 May 2024 15:48:15 +0800 Subject: [PATCH] shared/bootspec: use path_make_absolute where appropriate --- src/shared/bootspec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 882d026a404..188613fb9ea 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -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; -- 2.47.3