aports/community/fuse/fix-realpath.patch
Natanael Copa 82ea00e5c2 community/fuse: move from main
Everything in main uses fuse3 now.
2024-08-02 13:26:44 +00:00

29 lines
535 B
Diff

--- a/util/fusermount.c
+++ B/util/fusermount.c
@@ -1322,19 +1322,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;