diff --git a/macros.in b/macros.in index 831fbf3f15..ca67b8ee8e 100644 --- a/macros.in +++ b/macros.in @@ -624,7 +624,7 @@ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\ # %__gpg @__GPG@ %__gpg_sign_cmd %{shescape:%{__gpg}} \ - gpg --no-verbose --no-armor --no-secmem-warning \ + --no-verbose --no-armor --no-secmem-warning \ %{?_gpg_path:--homedir %{shescape:%{_gpg_path}}} \ %{?_gpg_digest_algo:--digest-algo=%{_gpg_digest_algo}} \ %{?_gpg_sign_cmd_extra_args} \ @@ -634,7 +634,7 @@ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\ %__sq @__SQ@ %__sq_sign_cmd %{shescape:%{__sq}} \ - %{__sq} sign \ + sign \ %{?_sq_path:--homedir %{shescape:%{_sq_path}}} \ %{?_openpgp_sign_id:--signer-key %{_openpgp_sign_id}} \ %{?_sq_sign_cmd_extra_args} \ diff --git a/sign/rpmgensig.cc b/sign/rpmgensig.cc index c07ac535ed..5d6455cb7b 100644 --- a/sign/rpmgensig.cc +++ b/sign/rpmgensig.cc @@ -246,7 +246,7 @@ static int runGPG(sigTarget sigt, const char *sigfile) dup2(pipefd[0], STDIN_FILENO); close(pipefd[1]); - rc = execve(argv[0], argv+1, environ); + rc = execve(argv[0], argv, environ); rpmlog(RPMLOG_ERR, _("Could not exec %s: %s\n"), argv[0], strerror(errno));