aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fuse3/fix-realpath.patch
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-10-19 09:41:34 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2017-10-19 10:57:30 +0200
commit1e9f85a679aacd7ad1764ad2b2da399c87442abe (patch)
treea2831051d1c591778e7e141cf3115c231517600e /testing/fuse3/fix-realpath.patch
parent9a70ab145f58801346c2da33559be0aea3bfdbe9 (diff)
downloadaports-1e9f85a679aacd7ad1764ad2b2da399c87442abe.tar.bz2
aports-1e9f85a679aacd7ad1764ad2b2da399c87442abe.tar.xz
testing/fuse3: new aport
https://github.com/alpinelinux/aports/pull/1902
Diffstat (limited to 'testing/fuse3/fix-realpath.patch')
-rw-r--r--testing/fuse3/fix-realpath.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/fuse3/fix-realpath.patch b/testing/fuse3/fix-realpath.patch
new file mode 100644
index 0000000000..375bedc961
--- /dev/null
+++ b/testing/fuse3/fix-realpath.patch
@@ -0,0 +1,28 @@
+--- fuse-3.1.0.orig/util/fusermount.c
++++ fuse-3.1.0/util/fusermount.c
+@@ -1200,19 +1200,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);
+- goto err_out;
+- }
+- }
+- 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;