summaryrefslogtreecommitdiff
path: root/security/seahorse/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'security/seahorse/patches/patch-aa')
-rw-r--r--security/seahorse/patches/patch-aa18
1 files changed, 9 insertions, 9 deletions
diff --git a/security/seahorse/patches/patch-aa b/security/seahorse/patches/patch-aa
index 8833169eb1f..138dc80b239 100644
--- a/security/seahorse/patches/patch-aa
+++ b/security/seahorse/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.6 2004/11/07 13:19:24 jmmv Exp $
+$NetBSD: patch-aa,v 1.7 2005/05/19 21:14:11 jmmv Exp $
---- libseahorse/seahorse-util.c.orig 2004-10-14 11:40:11.000000000 -0600
+--- libseahorse/seahorse-util.c.orig 2005-05-01 19:30:09.000000000 +0000
+++ libseahorse/seahorse-util.c
-@@ -226,11 +226,12 @@ seahorse_util_write_data_to_file (const
+@@ -230,11 +230,12 @@ seahorse_util_write_data_to_file (const
gchar *buffer;
gint nread;
@@ -15,13 +15,13 @@ $NetBSD: patch-aa,v 1.6 2004/11/07 13:19:24 jmmv Exp $
+ if (gpgme_data_seek (data, 0, SEEK_SET) == -1)
+ {
+ gpg_err_code_t e = gpg_err_code_from_errno (errno);
-+ return GPG_E (e);
++ return GPG_E (e);
+ }
- file = seahorse_vfs_data_create (path, TRUE, &err);
- if(file != NULL)
-@@ -270,11 +271,11 @@ seahorse_util_write_data_to_text (gpgme_
- guint nread = 0;
+ file = seahorse_vfs_data_create (path, SEAHORSE_VFS_WRITE, &err);
+ if (file != NULL) {
+@@ -275,11 +276,11 @@ seahorse_util_write_data_to_text (gpgme_
+ guint nread = 0;
GString *string;
- /*
@@ -32,7 +32,7 @@ $NetBSD: patch-aa,v 1.6 2004/11/07 13:19:24 jmmv Exp $
+ /* Reset the read pointer in data */
+ if (gpgme_data_seek (data, 0, SEEK_SET) == -1)
+ {
-+ return NULL;
++ return NULL;
+ }
string = g_string_new ("");