public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-pda/libimobiledevice/files: libimobiledevice-1.1.4-HOME-segfault.patch
@ 2012-08-05 13:03 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2012-08-05 13:03 UTC (permalink / raw
  To: gentoo-commits

ssuominen    12/08/05 13:03:59

  Added:                libimobiledevice-1.1.4-HOME-segfault.patch
  Log:
  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)

Revision  Changes    Path
1.1                  app-pda/libimobiledevice/files/libimobiledevice-1.1.4-HOME-segfault.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-HOME-segfault.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-HOME-segfault.patch?rev=1.1&content-type=text/plain

Index: libimobiledevice-1.1.4-HOME-segfault.patch
===================================================================
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");





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-05 13:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-05 13:03 [gentoo-commits] gentoo-x86 commit in app-pda/libimobiledevice/files: libimobiledevice-1.1.4-HOME-segfault.patch Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox