diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-05-14 09:48:15 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-05-14 12:19:19 +0200 |
commit | 94e9ae6f533133d2055726aa3223e3da419b4164 (patch) | |
tree | c036d3b7a8d1e9c1af42f97fa91e233a294b63d3 /src/shared/bootspec.c | |
parent | shared/bootspec: inline iterator var (diff) | |
download | systemd-94e9ae6f533133d2055726aa3223e3da419b4164.tar.xz systemd-94e9ae6f533133d2055726aa3223e3da419b4164.zip |
shared/bootspec: use path_make_absolute where appropriate
Diffstat (limited to '')
-rw-r--r-- | src/shared/bootspec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 882d026a40..188613fb9e 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; |