Merge lp:~randomaction/gnome-gpg/lp374498 into lp:gnome-gpg

Proposed by Ilya Barygin
Status: Needs review
Proposed branch: lp:~randomaction/gnome-gpg/lp374498
Merge into: lp:gnome-gpg
Diff against target: None lines
To merge this branch: bzr merge lp:~randomaction/gnome-gpg/lp374498
Reviewer Review Type Date Requested Status
James Henstridge Pending
Review via email: mp+10529@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ilya Barygin (randomaction) wrote :

This patch was used to fix FTBFS (bug #374498).

Unmerged revisions

46. By Ilya Barygin

Check return value of write().

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'gnome-gpg.c'
--- gnome-gpg.c 2008-02-17 09:42:12 +0000
+++ gnome-gpg.c 2009-07-17 13:26:03 +0000
@@ -173,8 +173,10 @@
173 }173 }
174 gnome_keyring_found_list_free(found_items);174 gnome_keyring_found_list_free(found_items);
175 175
176 write (passphrase_fd, passphrase, strlen (passphrase));176 if (write (passphrase_fd, passphrase, strlen (passphrase)) != strlen (passphrase) ||
177 write (passphrase_fd, "\n", 1);177 write (passphrase_fd, "\n", 1) != 1) {
178 error_dialog (_("Couldn't write passphrase to file"));
179 }
178180
179 if (keyring_available && save_password) {181 if (keyring_available && save_password) {
180 gchar *nice_name = g_strdup_printf (_("GNU Privacy Guard passphrase for key ID: %s"),182 gchar *nice_name = g_strdup_printf (_("GNU Privacy Guard passphrase for key ID: %s"),

Subscribers

People subscribed via source and target branches

to all changes: