core: Fix --set-filename argument

* src/engine-gpg.c (gpg_encrypt): Append equal sign to argument name.
--

GnuPG-bug-id: 6342
This commit is contained in:
Ingo Klöcker 2023-01-19 10:29:56 +01:00
parent 5d8316da1d
commit aa201b0bb6
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9

View File

@ -2381,7 +2381,7 @@ gpg_encrypt (void *engine, gpgme_key_t recp[], const char *recpstring,
if (gpgme_data_get_file_name (plain))
{
if (!err)
err = add_gpg_arg_with_value (gpg, "--set-filename", gpgme_data_get_file_name (plain), 0);
err = add_gpg_arg_with_value (gpg, "--set-filename=", gpgme_data_get_file_name (plain), 0);
}
if (gpg->flags.use_gpgtar)
{