diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2009-08-18 15:30:07 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2009-08-18 15:47:00 +0200 |
commit | 2b4d11a7e0eee6a6cd24234fdbdeae1672323cd3 (patch) | |
tree | 1d28007f1495987feade8edf5a6ace407f991311 /client | |
parent | 13ae4361636faf02d34c703986a470a6d2bae80c (diff) | |
download | gvfs-2b4d11a7e0eee6a6cd24234fdbdeae1672323cd3.tar.gz |
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.
Diffstat (limited to 'client')
-rw-r--r-- | client/gdaemonmount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c index 703cbd6f..2f7e2d66 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 * |