summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackenddav.c
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2016-08-29 14:05:18 +0200
committerOndrej Holy <oholy@redhat.com>2016-09-12 14:27:45 +0200
commitc4d92cfaa268f15162de6152461dc76a68b0aa0b (patch)
treeadb3cebaf8646a2e7156dcbe585eaf8a65809464 /daemon/gvfsbackenddav.c
parent47b10c6a94a08efc7ce84e121641a4f77bffd5e0 (diff)
downloadgvfs-c4d92cfaa268f15162de6152461dc76a68b0aa0b.tar.gz
dav: Try also root when looking for the shortest prefix
Dav backend always tries to mount WebDAV share with the shortest prefix. Unfortunately, it never tries the root when looking for it excepting the case, when the root is already specified. https://bugzilla.gnome.org/show_bug.cgi?id=770549
Diffstat (limited to 'daemon/gvfsbackenddav.c')
-rw-r--r--daemon/gvfsbackenddav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index d39643de..adaf00d3 100644
--- a/daemon/gvfsbackenddav.c
+++ b/daemon/gvfsbackenddav.c
@@ -1965,7 +1965,7 @@ do_mount (GVfsBackend *backend,
soup_message_headers_clear (msg_stat->response_headers);
soup_message_body_truncate (msg_stat->response_body);
- } while (strcmp (mount_base->path, "/") != 0);
+ } while (g_strcmp0 (last_good_path, "/") != 0);
/* we either encountered an error or we have
reached the end of paths we are allowed to