[Pkg-owncloud-commits] [owncloud-client] 01/01: Added patch to fix segault (Closes: #742064)

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Mar 21 16:38:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 04c3960e9768d5ca8ced2e4d7ddbd37e1dc4bd51
Author: Sandro Knauß <bugs at sandroknauss.de>
Date:   Fri Mar 21 17:38:06 2014 +0100

    Added patch to fix segault (Closes: #742064)
---
 ...error-instead-of-a-crash-when-dav_connect.patch | 25 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/0005-Make-it-an-error-instead-of-a-crash-when-dav_connect.patch b/debian/patches/0005-Make-it-an-error-instead-of-a-crash-when-dav_connect.patch
new file mode 100644
index 0000000..841856c
--- /dev/null
+++ b/debian/patches/0005-Make-it-an-error-instead-of-a-crash-when-dav_connect.patch
@@ -0,0 +1,25 @@
+Description: Make it an error instead of a crash when dav_connect fails.
+ Fixes #1591
+Author: Olivier Goffart <ogoffart at woboq.com>
+Origin: upstream, https://github.com/owncloud/mirall/commit/922e004fc6a1b8e02968f349ff512d972a0bdef2
+Bug-Debian: https://bugs.debian.org/742064
+Date: 20134-03-21
+Last-Update: 2014-03-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: owncloud-client/csync/src/csync_owncloud.c
+===================================================================
+--- owncloud-client.orig/csync/src/csync_owncloud.c	2014-03-21 17:29:14.581655104 +0100
++++ owncloud-client/csync/src/csync_owncloud.c	2014-03-21 17:29:14.568321636 +0100
+@@ -979,7 +979,10 @@
+ 
+     DEBUG_WEBDAV("opendir method called on %s", uri );
+ 
+-    dav_connect( uri );
++    if (dav_connect( uri ) < 0) {
++        DEBUG_WEBDAV("connection failed");
++        return NULL;
++    }
+ 
+     curi = _cleanPath( uri );
+     if (is_first_propfind && !dav_session.no_recursive_propfind) {
diff --git a/debian/patches/series b/debian/patches/series
index a52131e..740e66b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-create-manpage.patch
 0003-respect-the-XDG_CONFIG_HOME-env-variable.patch
 0004-debian_version.patch
+0005-Make-it-an-error-instead-of-a-crash-when-dav_connect.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list