blob: c2c276e4588320b5d457c814f8904c4e0108f538 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 79396449d264bde58b4daa3ef6dd99f0f0652429 Mon Sep 17 00:00:00 2001
2From: Tim Orling <timothy.t.orling@linux.intel.com>
3Date: Thu, 28 Dec 2017 22:10:58 -0800
4Subject: [PATCH 3/3] musl does not provide canonicalize_file_name
5
6Reuse the approach from systemd:
7systemd/0007-check-for-missing-canonicalize_file_name.patch
8
9Based on work by: Khem Raj <raj.khem@gmail.com>
10
11Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Andrew Geissler595f6302022-01-24 19:11:47 +000012Upstream-Status: Submitted [https://github.com/systemd/systemd-bootchart/pull/47]
Brad Bishop316dfdd2018-06-25 12:45:53 -040013---
Brad Bishop316dfdd2018-06-25 12:45:53 -040014
15 src/path-util.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/path-util.c b/src/path-util.c
19index 2fb6366..12e2e17 100644
20--- a/src/path-util.c
21+++ b/src/path-util.c
22@@ -63,7 +63,7 @@ char **path_strv_resolve(char **l, const char *prefix) {
23 t = *s;
24
25 errno = 0;
26- u = canonicalize_file_name(t);
27+ u = realpath(t, NULL);
28 if (!u) {
29 if (errno == ENOENT) {
30 if (prefix) {
31--
322.13.6
33