blob: 98cd40c84c4bbfd112bb4590a52e0dc7c4dec0f6 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 781288d6307002cce70ddafb6efb200b7f60294d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Jun 2017 22:12:43 -0700
4Subject: [PATCH 3/6] Replace canonicalize_file_name with realpath() API
5
6Fixed build on musl where canonicalize_file_name is not implemented
7
8filesystem.cpp:46:15: error: 'canonicalize_file_name' was not declared in this scope
9 char *p = canonicalize_file_name(path);
10
11Upstream-Status: Pending
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 lib/engine/filesystem.cpp | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/lib/engine/filesystem.cpp b/lib/engine/filesystem.cpp
19index b99257e..6064837 100644
20--- a/lib/engine/filesystem.cpp
21+++ b/lib/engine/filesystem.cpp
22@@ -43,7 +43,7 @@ void CanonicalPath::__canonicalize_path_name(const char *path)
23 if (path == 0) {
24 throw E_NULL_POINTER;
25 }
26- char *p = canonicalize_file_name(path);
27+ char *p = realpath(path, NULL);
28 assign(p);
29 if (p) {
30 free(p);
31--
322.13.1
33