Hello community,

here is the log from the commit of package libimobiledevice for openSUSE:12.2 
checked in at 2012-07-12 10:47:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2/libimobiledevice (Old)
 and      /work/SRC/openSUSE:12.2/.libimobiledevice.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libimobiledevice", Maintainer is "sts...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:12.2/libimobiledevice/libimobiledevice.changes   
2012-06-25 15:44:10.000000000 +0200
+++ /work/SRC/openSUSE:12.2/.libimobiledevice.new/libimobiledevice.changes      
2012-07-12 10:47:05.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Jul  9 17:15:08 CEST 2012 - sbra...@suse.cz
+
+- Fix segfault without $XDG_CONFIG_HOME and $HOME set
+  (bnc#768537, libiphone#273).
+
+-------------------------------------------------------------------

New:
----
  libimobiledevice-segfault-fix.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libimobiledevice.spec ++++++
--- /var/tmp/diff_new_pack.CYXX9v/_old  2012-07-12 10:47:05.000000000 +0200
+++ /var/tmp/diff_new_pack.CYXX9v/_new  2012-07-12 10:47:05.000000000 +0200
@@ -43,6 +43,8 @@
 Source:         %{name}-%{version}.tar.bz2
 Source1:        baselibs.conf
 Patch0:         libimobiledevice-cython1.16-detection.patch
+# PATCH-FIX-UPSTREAM libimobiledevice-segfault-fix.patch bnc768537 
libiphone273 sbra...@suse.cz -- Fix segfault without $XDG_CONFIG_HOME and $HOME 
set.
+Patch1:         libimobiledevice-segfault-fix.patch
 Summary:        Native protocols library for iPhone, iPod Touch and iPad
 License:        LGPL-2.1+
 Group:          System/Libraries
@@ -117,6 +119,7 @@
 %prep
 %setup -q -n %{name}-%{version}
 %patch0 -p1
+%patch1
 
 %build
 autoreconf -fi

++++++ libimobiledevice-segfault-fix.patch ++++++
The patch fixes segfault when both $XDG_CONFIG_HOME and $HOME are unset
Signed-off-by: Maxim Mikityanskiy <maxtra...@gmail.com>
--- src/userpref.c.orig 2012-06-04 17:04:57.387303630 +0300
+++ src/userpref.c      2012-06-04 17:06:05.741301627 +0300
@@ -125,6 +125,9 @@
        const char *cdir = getenv("XDG_CONFIG_HOME");
        if (!cdir) {
                cdir = getenv("HOME");
+               if (!cdir) {
+                       cdir="/root";
+               }
                strcpy(__config_dir, cdir);
                strcat(__config_dir, DIR_SEP_S);
                strcat(__config_dir, ".config");
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to