Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-keyring/files: gnome-keyring-2.22.3-warnings.patch
Date: Sun, 05 Oct 2008 22:28:03
Message-Id: E1Kmc53-0006iv-5h@stork.gentoo.org
1 eva 08/10/05 22:28:01
2
3 Added: gnome-keyring-2.22.3-warnings.patch
4 Log:
5 bump to 2.22.3-r1, fix invalid read, bug #238098.
6 (Portage version: 2.2_rc11/cvs/Linux 2.6.24-gentoo-r8-mactel x86_64)
7
8 Revision Changes Path
9 1.1 gnome-base/gnome-keyring/files/gnome-keyring-2.22.3-warnings.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gnome-keyring/files/gnome-keyring-2.22.3-warnings.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gnome-keyring/files/gnome-keyring-2.22.3-warnings.patch?rev=1.1&content-type=text/plain
13
14 Index: gnome-keyring-2.22.3-warnings.patch
15 ===================================================================
16 --- trunk/common/gkr-unix-credentials.c 2008/06/29 13:24:49 1155
17 +++ trunk/common/gkr-unix-credentials.c 2008/07/02 16:08:26 1166
18 @@ -90,6 +90,10 @@
19 if (errno == EINTR)
20 goto again;
21 return -1;
22 +
23 + } else if (ret == 0) {
24 + /* Disconnected */
25 + return -1;
26 }
27
28 if (buf != '\0') {
29 --- trunk/library/tests/unit-test-other.c 2008/02/14 17:22:27 1058
30 +++ trunk/library/tests/unit-test-other.c 2008/07/02 16:08:26 1166
31 @@ -86,3 +86,11 @@
32 msg = gnome_keyring_result_to_message (GNOME_KEYRING_RESULT_KEYRING_ALREADY_EXISTS);
33 CuAssert (cu, "should return a valid message", msg && msg[0]);
34 }
35 +
36 +void unit_test_is_available (CuTest* cu)
37 +{
38 + gboolean ret;
39 +
40 + ret = gnome_keyring_is_available ();
41 + CuAssert (cu, "gnome_is_available returned false", ret == TRUE);
42 +}