python/hypothesis: update to 6.121.0
[oi-userland.git] / components / library / glib / patches / 20-unmount.patch
blobec6c18f3dc7f2e770107c5704939f4672391ecda
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 --- glib-2.82.0/gio/gunixmount.c.orig
7 +++ glib-2.82.0/gio/gunixmount.c
8 @@ -334,12 +334,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, "[gio] unmount mount");