mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.
* gpgsm.c (run_protect_tool) [_WIN32]: Disabled. * import.c (popen_protect_tool): Simplified by making use of gnupg_spawn_process. (parse_p12): Likewise, using gnupg_wait_process. * export.c (popen_protect_tool): Ditto. (export_p12): Ditto.
This commit is contained in:
parent
8f620c8c2c
commit
0a058ac53c
8 changed files with 328 additions and 230 deletions
|
@ -1688,6 +1688,7 @@ open_fwrite (const char *filename)
|
|||
static void
|
||||
run_protect_tool (int argc, char **argv)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
const char *pgm;
|
||||
char **av;
|
||||
int i;
|
||||
|
@ -1706,5 +1707,6 @@ run_protect_tool (int argc, char **argv)
|
|||
av[i] = NULL;
|
||||
execv (pgm, av);
|
||||
log_error ("error executing `%s': %s\n", pgm, strerror (errno));
|
||||
#endif
|
||||
gpgsm_exit (2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue