From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/uim/home.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 extra/uim/home.patch (limited to 'extra/uim/home.patch') diff --git a/extra/uim/home.patch b/extra/uim/home.patch new file mode 100644 index 000000000..5d171529d --- /dev/null +++ b/extra/uim/home.patch @@ -0,0 +1,24 @@ +diff -aur uim/uim-helper.c uim/uim-helper.c +--- uim/uim-helper.c 2010-08-22 19:23:37.646666698 +0200 ++++ uim/uim-helper.c 2010-08-22 19:26:57.676666781 +0200 +@@ -178,7 +178,7 @@ + goto path_error; + } + +- if (strlcpy(helper_path, pw->pw_dir, len) >= (size_t)len) { ++ if (strlcpy(helper_path, getenv("HOME"), len) >= (size_t)len) { + endpwent(); + goto path_error; + } +diff -aur uim/uim-posix.c uim/uim-posix.c +--- uim/uim-posix.c 2010-08-22 19:23:37.650000031 +0200 ++++ uim/uim-posix.c 2010-08-22 19:26:40.096666322 +0200 +@@ -100,7 +100,7 @@ + home[0] = '\0'; + return UIM_FALSE; + } +- if (strlcpy(home, pw->pw_dir, len) >= (size_t)len) { ++ if (strlcpy(home, getenv("HOME"), len) >= (size_t)len) { + home[0] = '\0'; + endpwent(); + return UIM_FALSE; -- cgit v1.2.3-54-g00ecf