summaryrefslogtreecommitdiff
path: root/repo/fuse/fix-realpath.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/fuse/fix-realpath.patch
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/fuse/fix-realpath.patch')
-rw-r--r--repo/fuse/fix-realpath.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/repo/fuse/fix-realpath.patch b/repo/fuse/fix-realpath.patch
new file mode 100644
index 0000000..0099173
--- /dev/null
+++ b/repo/fuse/fix-realpath.patch
@@ -0,0 +1,28 @@
+--- a/util/fusermount.c
++++ B/util/fusermount.c
+@@ -1322,19 +1322,16 @@
+
+ origmnt = argv[optind];
+
+- drop_privs();
+ mnt = fuse_mnt_resolve_path(progname, origmnt);
+- if (mnt != NULL) {
+- res = chdir("/");
+- if (res == -1) {
+- fprintf(stderr, "%s: failed to chdir to '/'\n", progname);
+- exit(1);
+- }
+- }
+- restore_privs();
+ if (mnt == NULL)
+ exit(1);
+
++ res = chdir("/");
++ if (res == -1) {
++ fprintf(stderr, "%s: failed to chdir to '/'\n", progname);
++ exit(1);
++ }
++
+ umask(033);
+ if (unmount)
+ goto do_unmount;