From 984ff7e3a2a9a261a0732cbdaf3b2f22d325b433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 16 Jan 2023 12:28:13 +0100 Subject: [PATCH] core: Do not add obsolete --no-sk-comments to command line * src/engine-gpg.c (build_argv): Don't add "--no-sk-comments" to argv. -- This option is a no-op since 1.4.3 and 1.4.23 is the latest 1.4 release. GnuPG-bug-id: 6342 --- src/engine-gpg.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/engine-gpg.c b/src/engine-gpg.c index 9d20f2ba..a0f24a8a 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -944,8 +944,6 @@ build_argv (engine_gpg_t gpg, const char *pgmname) if (!gpg->cmd.used) argc++; /* --batch */ - argc++; /* --no-sk-comments */ - argv = calloc (argc + 1, sizeof *argv); allocated_argc = argc; @@ -1125,15 +1123,6 @@ build_argv (engine_gpg_t gpg, const char *pgmname) } argc++; } - argv[argc] = strdup ("--no-sk-comments"); - if (!argv[argc]) - { - int saved_err = gpg_error_from_syserror (); - free (fd_data_map); - free_argv (argv); - return saved_err; - } - argc++; for (a = gpg->arglist; a; a = a->next) { if (a->arg_locp)