summaryrefslogtreecommitdiff
path: root/user/fuse3/fix-realpath.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-09-18 02:00:09 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-09-18 02:00:09 +0000
commit3eef3c84f5d830f3621d5326577f25bb925abca6 (patch)
tree33a61eeb7b2ccb634d670df35c35a0997c4f2f8e /user/fuse3/fix-realpath.patch
parentd079f866e1a31f54e0c3f3d76f2f5cc6380a77cb (diff)
parenta13a5cba375dbb9b56d0df2d9f1a78d4709d50a8 (diff)
downloadpackages-3eef3c84f5d830f3621d5326577f25bb925abca6.tar.gz
packages-3eef3c84f5d830f3621d5326577f25bb925abca6.tar.bz2
packages-3eef3c84f5d830f3621d5326577f25bb925abca6.tar.xz
packages-3eef3c84f5d830f3621d5326577f25bb925abca6.zip
Merge branch 'sshfs' into 'master'
Add fuse3, sshfs, and some undeclared dependencies for py3-pytest See merge request !60
Diffstat (limited to 'user/fuse3/fix-realpath.patch')
-rw-r--r--user/fuse3/fix-realpath.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/user/fuse3/fix-realpath.patch b/user/fuse3/fix-realpath.patch
new file mode 100644
index 000000000..375bedc96
--- /dev/null
+++ b/user/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;