Home GnuPG
Diffusion GnuPG 250733c0d86d

common: Add gnupg_check_special_filename.

Description

common: Add gnupg_check_special_filename.

* common/sysutils.h (gnupg_check_special_filename): New.
* common/sysutils.c (gnupg_check_special_filename): New.
* common/iobuf.c (translate_file_handle): Remove.
(iobuf_is_pipe_filename): Use gnupg_check_special_filename.
(do_open): Use gnupg_check_special_filename.
* g10/plaintext.c (get_output_file): Use gnupg_check_special_filename
and open_stream_nc.
  • GnuPG-bug-id: T6580
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 11 2023, 3:46 AM
Parents
rG37343db08f4a: common,gpg,kbx: Factor out open_stream_nc.
Branches
Unknown
Tags
Unknown
Tasks
T6580: Use gnupg_fd_t if it's relevant