[gvfs] GDaemonMount calculates wrong root path when mount_prefix is set



commit 2b4d11a7e0eee6a6cd24234fdbdeae1672323cd3
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Tue Aug 18 15:30:07 2009 +0200

    GDaemonMount calculates wrong root path when mount_prefix is set
    
    When a mount is mounted with a mount_prefix != "/", GDaemonMount calculates
    wrong root path, causing breakage of the .gvfs FUSE mount, and making the
    mounts unclickable in Nautilus.
    
    Patch by Mads Chr. Olesen, see bug 590730 for details.

 client/gdaemonmount.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c
index 703cbd6..2f7e2d6 100644
--- a/client/gdaemonmount.c
+++ b/client/gdaemonmount.c
@@ -110,7 +110,8 @@ g_daemon_mount_get_root (GMount *mount)
 {
   GDaemonMount *daemon_mount = G_DAEMON_MOUNT (mount);
 
-  return g_daemon_file_new (daemon_mount->mount_info->mount_spec, "/");
+  return g_daemon_file_new (daemon_mount->mount_info->mount_spec, 
+        daemon_mount->mount_info->mount_spec->mount_prefix);
 }
 
 static GIcon *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]