[gvfs] dav: Try also root when looking for the shortest prefix
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] dav: Try also root when looking for the shortest prefix
- Date: Mon, 12 Sep 2016 12:33:18 +0000 (UTC)
commit c4d92cfaa268f15162de6152461dc76a68b0aa0b
Author: Ondrej Holy <oholy redhat com>
Date: Mon Aug 29 14:05:18 2016 +0200
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
daemon/gvfsbackenddav.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index d39643d..adaf00d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]