Displaying 2 results from an estimated 2 matches for "6c7eee1".
2015 Mar 18
2
[PATCH] fuse: resolve absolute links to relative ones
First it strips /sysroot and then finds common prefix aligned
on slashes. Next it produces ../ for each slash found in common
prefix and concatenates them with the rest of resolved link.
Fixes RHBZ#604041
Maros Zatko (1):
fuse: resolve absolute links to relative ones
src/fuse.c | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
--
1.9.3
2015 Mar 18
0
[PATCH] fuse: resolve absolute links to relative ones
...n slashes. Next it produces ../ for each slash found in common
prefix and concatenates them with the rest of resolved link.
Fixes RHBZ#604041
---
src/fuse.c | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/src/fuse.c b/src/fuse.c
index 3fdb1d4..6c7eee1 100644
--- a/src/fuse.c
+++ b/src/fuse.c
@@ -386,7 +386,38 @@ mount_local_readlink (const char *path, char *buf, size_t size)
if (len > size - 1)
len = size - 1;
- memcpy (buf, r, len);
+ buf[0] = '\0';
+ size_t offset = 0;
+ if (STRPREFIX (r, "/sysroot")) {
+...