From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-i18n/ibus/files: ibus-1.4.0-machine-id-fallback.patch |
Date: | Fri, 23 Dec 2011 07:59:17 |
Message-Id: | 20111223075907.701522004B@flycatcher.gentoo.org |
1 | ssuominen 11/12/23 07:59:07 |
2 | |
3 | Added: ibus-1.4.0-machine-id-fallback.patch |
4 | Log: |
5 | Support /etc/machine-id fallback wrt #390463 by "Alphat-PC" |
6 | |
7 | (Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-i18n/ibus/files/ibus-1.4.0-machine-id-fallback.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/files/ibus-1.4.0-machine-id-fallback.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/files/ibus-1.4.0-machine-id-fallback.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: ibus-1.4.0-machine-id-fallback.patch |
16 | =================================================================== |
17 | http://cgit.freedesktop.org/dbus/dbus/commit/dbus/dbus-sysdeps-unix.c?id=66e52541d5bdd4927a5c702963749760643313f4 |
18 | |
19 | http://bugs.gentoo.org/390463 |
20 | |
21 | --- src/ibusshare.c |
22 | +++ src/ibusshare.c |
23 | @@ -41,7 +41,11 @@ ibus_get_local_machine_id (void) |
24 | |
25 | if (machine_id == NULL) { |
26 | GError *error = NULL; |
27 | - if (!g_file_get_contents ("/var/lib/dbus/machine-id", |
28 | + if (!g_file_get_contents ("/etc/machine-id", |
29 | + &machine_id, |
30 | + NULL, |
31 | + NULL) && |
32 | + !g_file_get_contents ("/var/lib/dbus/machine-id", |
33 | &machine_id, |
34 | NULL, |
35 | &error)) { |