summaryrefslogtreecommitdiff
path: root/user/fuse/fix-realpath.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-09-29 18:52:13 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-09-29 18:52:13 +0000
commit99f31680a05d6e4fa4f1e987ca2880929128d6ee (patch)
tree2074e07b152535720a322ecd2fd9be1e6515ef1f /user/fuse/fix-realpath.patch
parent05bb90387abb8d5d4bbe1ce2d33f688426961c71 (diff)
parent9c89fba736f2dca43867ae5ec0aeb27c75dbfb12 (diff)
downloadpackages-99f31680a05d6e4fa4f1e987ca2880929128d6ee.tar.gz
packages-99f31680a05d6e4fa4f1e987ca2880929128d6ee.tar.bz2
packages-99f31680a05d6e4fa4f1e987ca2880929128d6ee.tar.xz
packages-99f31680a05d6e4fa4f1e987ca2880929128d6ee.zip
Merge branch 'ntfs-3g' into 'master'
Add fuse(~2) and ntfs-3g See merge request !68
Diffstat (limited to 'user/fuse/fix-realpath.patch')
-rw-r--r--user/fuse/fix-realpath.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/user/fuse/fix-realpath.patch b/user/fuse/fix-realpath.patch
new file mode 100644
index 000000000..1199eb338
--- /dev/null
+++ b/user/fuse/fix-realpath.patch
@@ -0,0 +1,28 @@
+--- fuse-2.9.3.orig/util/fusermount.c 2015-02-07 08:58:54.000000000 -0200
++++ fuse-2.9.3/util/fusermount.c 2015-02-09 09:15:16.737367957 -0200
+@@ -1255,19 +1255,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;