]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-revert-gpg-argv-parsing.patch
- finished patch review, some patches require update (mst notableis x32)
[packages/rpm.git] / rpm-revert-gpg-argv-parsing.patch
diff --git a/rpm-revert-gpg-argv-parsing.patch b/rpm-revert-gpg-argv-parsing.patch
deleted file mode 100644 (file)
index a3d0d62..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-diff -urN rpm-5.4.10/rpmdb/signature.c rpm-5.4.12/rpmdb/signature.c
---- rpm-5.4.10/rpmdb/signature.c       2012-04-17 01:43:35.000000000 +0200
-+++ rpm-5.4.12/rpmdb/signature.c       2013-06-28 18:42:13.000000000 +0200
-@@ -12,7 +12,6 @@
- #include <rpmmacro.h> /* XXX for rpmGetPath() */
- #include <rpmhkp.h>
- #include <rpmku.h>
--#include <argv.h>
- #include <rpmtag.h>
- #include "rpmdb.h"
-@@ -503,7 +504,7 @@
-     if (!(pid = fork())) {
-       const char * cmd;
--      ARGV_t av;
-+      char *const *av;
-       int fdno;
-       xx = close(STDIN_FILENO);
-@@ -528,16 +529,13 @@
-               (void) setenv("GNUPGHOME", gpg_path, 1);
-           cmd = rpmExpand("%{?__gpg_check_password_cmd}", NULL);
--          rc = argvSplit(&av, cmd, NULL);
-+          rc = poptParseArgvString(cmd, NULL, (const char ***)&av);
-           if (!rc)
--              rc = execve(av[0], (char *const *)av+1, environ);
-+              rc = execve(av[0], av+1, environ);
-           rpmlog(RPMLOG_ERR, _("Could not exec %s: %s\n"), "gpg",
-                       strerror(errno));
--          cmd = _free(cmd);
--          gpg_path = _free(gpg_path);
-       }
--      av = argvFree(av);
-     }
-     pw = rpmkuPassPhrase(passPhrase);
This page took 0.029003 seconds and 4 git commands to generate.