summaryrefslogtreecommitdiff
path: root/extra/uim/home.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/uim/home.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/uim/home.patch')
-rw-r--r--extra/uim/home.patch24
1 files changed, 24 insertions, 0 deletions
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;