diff options
| author | tmpfile <tmpfile@users.noreply.github.com> | 2017-10-19 09:41:34 +0200 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-10-19 10:57:30 +0200 |
| commit | 1e9f85a679aacd7ad1764ad2b2da399c87442abe (patch) | |
| tree | a2831051d1c591778e7e141cf3115c231517600e /testing/fuse3/fix-realpath.patch | |
| parent | 9a70ab145f58801346c2da33559be0aea3bfdbe9 (diff) | |
| download | aports-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.patch | 28 |
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; |
