diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-08-05 13:03:59 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-08-05 13:03:59 +0000 |
commit | 69c73381fc9d3f04dc1c6b768d59f11dc6fc8b24 (patch) | |
tree | 24343bfd27e114c21840bbdf6fbd96501003602e /app-pda/libimobiledevice/files | |
parent | sci-chemistry/molmol: Add patch from fink, enhances code style and fixes OGL ... (diff) | |
download | gentoo-2-69c73381fc9d3f04dc1c6b768d59f11dc6fc8b24.tar.gz gentoo-2-69c73381fc9d3f04dc1c6b768d59f11dc6fc8b24.tar.bz2 gentoo-2-69c73381fc9d3f04dc1c6b768d59f11dc6fc8b24.zip |
Fix segmentation fault when both XDG_CONFIG_HOME and HOME are unset wrt #423155c3 by Davide Pesavento
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
Diffstat (limited to 'app-pda/libimobiledevice/files')
-rw-r--r-- | app-pda/libimobiledevice/files/libimobiledevice-1.1.4-HOME-segfault.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-HOME-segfault.patch b/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-HOME-segfault.patch new file mode 100644 index 000000000000..1dc82b763aab --- /dev/null +++ b/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-HOME-segfault.patch @@ -0,0 +1,15 @@ +http://bugs.gentoo.org/show_bug.cgi?id=423155#c3 +http://libiphone.lighthouseapp.com/projects/27916-libiphone/tickets/265 + +--- src/userpref.c ++++ src/userpref.c +@@ -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"); |