From fa0c458bb35cd35206456da02c894df87983528e Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 6 Dec 2012 19:02:23 +0100 Subject: [PATCH] Owncloud: Fix getting id from id cache. We need to remove the quotes around the ETag --- modules/csync_owncloud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/csync_owncloud.c b/modules/csync_owncloud.c index c76d32fdd8..43a19d8980 100644 --- a/modules/csync_owncloud.c +++ b/modules/csync_owncloud.c @@ -1378,12 +1378,12 @@ static const char* owncloud_file_id( const char *path ) bool doHeadRequest = false; if (_id_cache.uri && c_streq(path, _id_cache.uri)) { - return c_strdup(_id_cache.uri); + header = _id_cache.id; } doHeadRequest= false; /* ownCloud server doesn't have good support for HEAD yet */ - if( doHeadRequest ) { + if( !header && doHeadRequest ) { int neon_stat; /* Perform an HEAD request to the resource. HEAD delivers the * ETag header back. */