aboutsummaryrefslogtreecommitdiffstats
path: root/main/bubblewrap/realpath-workaround.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-01-25 17:33:47 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-01-25 17:33:47 +0000
commit5c29919eab0f55071e5429731c78d1857229261d (patch)
tree520faee96f44f3922bddd9ae801eb7bc04fa3acb /main/bubblewrap/realpath-workaround.patch
parent287e480ae88d41178a931cafab94e0fa849d8bf9 (diff)
downloadaports-5c29919eab0f55071e5429731c78d1857229261d.tar.bz2
aports-5c29919eab0f55071e5429731c78d1857229261d.tar.xz
main/bubblewrap: move from community
Diffstat (limited to 'main/bubblewrap/realpath-workaround.patch')
-rw-r--r--main/bubblewrap/realpath-workaround.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/bubblewrap/realpath-workaround.patch b/main/bubblewrap/realpath-workaround.patch
new file mode 100644
index 0000000000..6f1e3b54b0
--- /dev/null
+++ b/main/bubblewrap/realpath-workaround.patch
@@ -0,0 +1,19 @@
+Musl realpath() implementation currently depends on /proc which is
+not available when setting up pivot root. For the time being just
+fallback to given path if realpath() fails. If there was symlinks
+that would have required normalizing the following parse_mountinfo()
+will fail.
+
+diff --git a/bind-mount.c b/bind-mount.c
+index 7d3543f..c33b701 100644
+--- a/bind-mount.c
++++ b/bind-mount.c
+@@ -397,7 +397,7 @@ bind_mount (int proc_fd,
+ path, so to find it in the mount table we need to do that too. */
+ resolved_dest = realpath (dest, NULL);
+ if (resolved_dest == NULL)
+- return 2;
++ resolved_dest = strdup (dest);
+
+ mount_tab = parse_mountinfo (proc_fd, resolved_dest);
+ if (mount_tab[0].mountpoint == NULL)