Fix a crash when storing passwords in the keyring. gnome-keyring-3.X should

be fully usable now.
This commit is contained in:
ajacoutot 2011-07-03 16:55:04 +00:00
parent 002264e2fe
commit 06d26c4129
2 changed files with 29 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.7 2011/06/28 12:57:47 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.8 2011/07/03 16:55:04 ajacoutot Exp $
COMMENT= password agent for the GNOME project
GNOME_PROJECT= gnome-keyring
GNOME_VERSION= 3.0.3
REVISION= 1
REVISION= 2
SHARED_LIBS += gck 0.0 # 0.0
SHARED_LIBS += gcr-3 0.0 # 0.0

View File

@ -0,0 +1,27 @@
$OpenBSD: patch-pkcs11_secret-store_gkm-secret-binary_c,v 1.1 2011/07/03 16:55:04 ajacoutot Exp $
warning: passing argument 4 of 'buffer_get_time' from incompatible pointer type
(https://bugzilla.gnome.org/show_bug.cgi?id=652565)
--- pkcs11/secret-store/gkm-secret-binary.c.orig Tue May 24 10:06:56 2011
+++ pkcs11/secret-store/gkm-secret-binary.c Sun Jul 3 17:45:29 2011
@@ -71,8 +71,8 @@ typedef struct {
char *display_name;
const guchar *ptr_secret;
gsize n_secret;
- time_t ctime;
- time_t mtime;
+ long int ctime;
+ long int mtime;
GHashTable *attributes;
GList *acl;
} ItemInfo;
@@ -849,7 +849,7 @@ gkm_secret_binary_read (GkmSecretCollection *collectio
guchar major, minor, crypto, hash;
guint32 flags;
guint32 lock_timeout;
- time_t mtime, ctime;
+ long int mtime, ctime;
char *display_name;
guint32 tmp;
guint32 num_items;