Codebase list mozc / debian/1.15.1857.102-1
Remove patches/fix-root-issue-at-uim.patch Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org> Nobuhiro Iwamatsu 9 years ago
1 changed file(s) with 0 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
+0
-30
debian/patches/fix-root-issue-at-uim.patch less more
0 Description: mozc.scm: Don't connect to server if it is root
1 Origin: macuim project: http://macuim.googlecode.com/svn/trunk / r321
2 Forwarded: not need
3 Author: uim Project http://code.google.com/p/uim/
4 Last-Update: 2013-04-16
5
6 --- a/unix/uim/scm/mozc.scm 2013-04-16 09:44:52.648051181 +0900
7 +++ b/unix/uim/scm/mozc.scm 2013-04-16 09:48:34.740050957 +0900
8 @@ -363,13 +363,16 @@
9 (define mozc-context-new
10 (lambda (id im name)
11 (let* ((mc (mozc-context-new-internal id im))
12 - (mid (if (symbol-bound? 'mozc-lib-alloc-context)
13 - (mozc-lib-alloc-context mc)
14 - #f)))
15 + (mid (if (symbol-bound? 'mozc-lib-alloc-context)
16 + (if (= (getuid) 0)
17 + #f
18 + (mozc-lib-alloc-context mc))
19 + (begin
20 + (uim-notify-info
21 + (N_ "libuim-mozc.so couldn't be loaded"))
22 + #f))))
23 (mozc-context-set-widgets! mc mozc-widgets)
24 (mozc-context-set-mc-id! mc mid)
25 - (if (not mid)
26 - (uim-notify-info (N_ "libuim-mozc.so couldn't be loaded")))
27 mc)))
28
29 (define mozc-separator