diff options
| author | Werner Koch <[email protected]> | 2025-07-31 09:37:08 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-07-31 09:37:27 +0000 |
| commit | 5dadef08f0504988807bc59eed9e37f89d4f84cb (patch) | |
| tree | da96854c5f65127828a023f204140aacc6202af1 /tools/gpgtar-extract.c | |
| parent | gpgtar: Fix regression in end-of-archive detection. (diff) | |
| download | gnupg-5dadef08f0504988807bc59eed9e37f89d4f84cb.tar.gz gnupg-5dadef08f0504988807bc59eed9e37f89d4f84cb.zip | |
gpgtar: Do not close stderr when calling gpg.
* tools/gpgtar-extract.c (gpgtar_extract): Do not close stderr.
* tools/gpgtar-list.c (gpgtar_list): Ditto.
--
This is another regression which made it impossible to use use
--status-fd=2 and also swallowed all other stderr output from gpg.
This is somewhat related
GnuPG-bug-id: 7757
Diffstat (limited to 'tools/gpgtar-extract.c')
| -rw-r--r-- | tools/gpgtar-extract.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpgtar-extract.c b/tools/gpgtar-extract.c index 55a517220..d23ccc579 100644 --- a/tools/gpgtar-extract.c +++ b/tools/gpgtar-extract.c @@ -492,7 +492,8 @@ gpgtar_extract (const char *filename, int decrypt) #endif err = gpgrt_process_spawn (opt.gpg_program, argv, ((filename ? 0 : GPGRT_PROCESS_STDIN_KEEP) - | GPGRT_PROCESS_STDOUT_PIPE), act, &proc); + | GPGRT_PROCESS_STDOUT_PIPE + | GPGRT_PROCESS_STDERR_KEEP), act, &proc); gpgrt_spawn_actions_release (act); xfree (argv); if (err) |
