Hello community, here is the log from the commit of package libimobiledevice for openSUSE:Factory checked in at 2012-07-12 10:46:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libimobiledevice (Old) and /work/SRC/openSUSE:Factory/.libimobiledevice.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libimobiledevice", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/libimobiledevice/libimobiledevice.changes 2012-06-25 12:48:54.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libimobiledevice.new/libimobiledevice.changes 2012-07-12 10:47:02.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Jul 9 17:15:08 CEST 2012 - [email protected] + +- 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.498tSc/_old 2012-07-12 10:47:03.000000000 +0200 +++ /var/tmp/diff_new_pack.498tSc/_new 2012-07-12 10:47:03.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 [email protected] -- 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 <[email protected]> --- 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: [email protected] For additional commands, e-mail: [email protected]
