[gmime] Don't pass --yes, ever.



commit 7243972a66ba56191715bbdba3f0556e4d6ccb2a
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Dec 10 09:09:58 2016 -0500

    Don't pass --yes, ever.

 gmime/gmime-gpg-context.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gmime/gmime-gpg-context.c b/gmime/gmime-gpg-context.c
index 6df00e6..7fd4fb9 100644
--- a/gmime/gmime-gpg-context.c
+++ b/gmime/gmime-gpg-context.c
@@ -647,7 +647,6 @@ gpg_ctx_get_argv (struct _GpgCtx *gpg, const char *path, int status_fd, int secr
                    interactive --command-fd option to send it the
                    user's password */
                g_ptr_array_add (args, "--batch");
-               g_ptr_array_add (args, "--yes");
        }
        
        g_ptr_array_add (args, "--charset=UTF-8");
@@ -785,7 +784,7 @@ gpg_ctx_op_start (struct _GpgCtx *gpg, const char *path)
        
        /* don't create the command-fd if we don't need it */
        if (!(gpg->need_passwd || gpg->sigstream || gpg->override_session_key))
-               maxfd -=2;
+               maxfd -= 2;
        
        for (i = 0; i < maxfd; i += 2) {
                if (pipe (fds + i) == -1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]