0003-musl-does-not-provide-canonicalize_file_name.patch 1015 B

123456789101112131415161718192021222324252627282930313233
  1. From 79396449d264bde58b4daa3ef6dd99f0f0652429 Mon Sep 17 00:00:00 2001
  2. From: Tim Orling <timothy.t.orling@linux.intel.com>
  3. Date: Thu, 28 Dec 2017 22:10:58 -0800
  4. Subject: [PATCH 3/3] musl does not provide canonicalize_file_name
  5. Reuse the approach from systemd:
  6. systemd/0007-check-for-missing-canonicalize_file_name.patch
  7. Based on work by: Khem Raj <raj.khem@gmail.com>
  8. Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
  9. ---
  10. Upstream-Status: Pending
  11. src/path-util.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/src/path-util.c b/src/path-util.c
  14. index 2fb6366..12e2e17 100644
  15. --- a/src/path-util.c
  16. +++ b/src/path-util.c
  17. @@ -63,7 +63,7 @@ char **path_strv_resolve(char **l, const char *prefix) {
  18. t = *s;
  19. errno = 0;
  20. - u = canonicalize_file_name(t);
  21. + u = realpath(t, NULL);
  22. if (!u) {
  23. if (errno == ENOENT) {
  24. if (prefix) {
  25. --
  26. 2.13.6