diff options
author | Max Rees <maxcrees@me.com> | 2018-09-21 18:18:38 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2018-09-21 18:25:00 -0400 |
commit | c5bf59f31f3f4c600b2df990043a1eca21d57269 (patch) | |
tree | 91ed301fc6f205e59fbc345f0a7cb9b138ce82f7 /user/fuse/fix-realpath.patch | |
parent | de7967e51d8a8b525054bca4dd72dae1b32a48dd (diff) | |
download | packages-c5bf59f31f3f4c600b2df990043a1eca21d57269.tar.gz packages-c5bf59f31f3f4c600b2df990043a1eca21d57269.tar.bz2 packages-c5bf59f31f3f4c600b2df990043a1eca21d57269.tar.xz packages-c5bf59f31f3f4c600b2df990043a1eca21d57269.zip |
user/fuse: new package
Diffstat (limited to 'user/fuse/fix-realpath.patch')
-rw-r--r-- | user/fuse/fix-realpath.patch | 28 |
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; |