diff options
author | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-12-04 20:19:54 -0600 |
---|---|---|
committer | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-12-04 20:19:54 -0600 |
commit | 5b773bfc871ccd0dc540942508e7480c1cd63df2 (patch) | |
tree | 432ab7299f728cd5f078cd3e2bfa4f92e8d43487 /extra/libimobiledevice/HOME-segfault.patch | |
parent | 0cb1158276158c1c2f4bef15c278ffcaf8859172 (diff) | |
parent | 1d3002e46bb10b50ac35a99b6d2e672cb2c4b2f9 (diff) |
Merge branch 'master' of gitpar:abslibre-mips64el
Conflicts:
extra/seahorse/PKGBUILD
Diffstat (limited to 'extra/libimobiledevice/HOME-segfault.patch')
-rw-r--r-- | extra/libimobiledevice/HOME-segfault.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/libimobiledevice/HOME-segfault.patch b/extra/libimobiledevice/HOME-segfault.patch new file mode 100644 index 000000000..e48e6cb42 --- /dev/null +++ b/extra/libimobiledevice/HOME-segfault.patch @@ -0,0 +1,14 @@ +The patch fixes segfault when both $XDG_CONFIG_HOME and $HOME are unset +Signed-off-by: Maxim Mikityanskiy <maxtram95@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"); |