Home GnuPG
Diffusion GnuPG fd9e6ae22eb9

gpg: photoid: Use standard spawn API.

Description

gpg: photoid: Use standard spawn API.

* g10/photoid.c (exec_write, exec_read, exec_finish): Remove.
(setup_input_file): Rename from make_tempdir.
(expand_args): Drop support of 'o' and 'O'.
(fill_command_argv, run_with_pipe, create_temp_file) New.
(show_photo): New with gnupg_spawn_process_fd and gnupg_wait_process.
(show_photos): Call show_photo.
  • GnuPG-bug-id: T4362
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>