mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
28 lines
563 B
Diff
28 lines
563 B
Diff
--- 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;
|