openexr: make architecture independent
[oi-userland.git] / components / library / glib / patches / 20-unmount.patch
blobbc5f6bae83b0ed13143b293e1633580d149ee86c
1 Adapted from OpenBSD
2 http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/devel/glib2/patches/patch-gio_gunixmount_c?rev=1.19&content-type=text/plain
4 to make unmount work for non-root users since our transition to Gnome 3
6 --- a/gio/gunixmount.c 2020-10-22 12:50:57.295707505 -0700
7 +++ b/gio/gunixmount.c 2020-10-22 14:51:46.852693272 -0700
8 @@ -330,12 +330,9 @@
9 gpointer user_data)
11 GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
12 - char *argv[] = {"umount", NULL, NULL};
13 + char *argv[] = {"/usr/bin/pfexec", "/usr/bin/rmumount", NULL, NULL};
15 - if (unix_mount->mount_path != NULL)
16 - argv[1] = unix_mount->mount_path;
17 - else
18 - argv[1] = unix_mount->device_path;
19 + argv[2] = unix_mount->device_path;
21 eject_unmount_do (mount, cancellable, callback, user_data, argv);