Fix for unmounting webdav shares.

GNOME Bug #567664.
This commit is contained in:
ajacoutot 2009-08-07 08:40:07 +00:00
parent 1f86089ac1
commit 720df6bf9d
2 changed files with 31 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.13 2009/07/21 09:19:32 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.14 2009/08/07 08:40:07 ajacoutot Exp $
COMMENT-main= GNOME virtual file system
COMMENT-smb= samba module for GVFS
@ -7,7 +7,7 @@ GNOME_PROJECT= gvfs
GNOME_VERSION= 1.0.3
SHARED_LIBS += gvfscommon 1.0 # .0.0
PKGNAME-main= ${DISTNAME}p6
PKGNAME-main= ${DISTNAME}p7
PKGNAME-smb= ${GNOME_PROJECT}-smb-${GNOME_VERSION}p3
# LGPLv2

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-daemon_gvfsbackenddav_c,v 1.1 2009/08/07 08:40:07 ajacoutot Exp $
Fix unmounting webdav share:
http://bugzilla.gnome.org/show_bug.cgi?id=567664
--- daemon/gvfsbackenddav.c.orig Fri Aug 7 10:21:57 2009
+++ daemon/gvfsbackenddav.c Fri Aug 7 10:23:13 2009
@@ -2124,11 +2124,11 @@ do_set_display_name (GVfsBackend *backend,
soup_uri_free (source);
}
-static gboolean
-try_unmount (GVfsBackend *backend,
+static void
+do_unmount (GVfsBackend *backend,
GVfsJobUnmount *job)
{
- _exit (0);
+ g_vfs_job_succeeded (G_VFS_JOB (job));
}
/* ************************************************************************* */
@@ -2156,5 +2156,5 @@ g_vfs_backend_dav_class_init (GVfsBackendDavClass *kla
backend_class->make_directory = do_make_directory;
backend_class->delete = do_delete;
backend_class->set_display_name = do_set_display_name;
- backend_class->try_unmount = try_unmount;
+ backend_class->unmount = do_unmount;
}