mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-11 21:48:50 +01:00
tools/gpgtar: Fix handling of '-'.
* tools/gpgtar-extract.c (gpgtar_extract): Use stdin if file is '-'. * tools/gpgtar-list.c (gpgtar_list): Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
d36f664bfd
commit
4819f687c4
@ -282,7 +282,7 @@ gpgtar_extract (const char *filename, int decrypt)
|
||||
if (filename)
|
||||
{
|
||||
if (!strcmp (filename, "-"))
|
||||
stream = es_stdout;
|
||||
stream = es_stdin;
|
||||
else
|
||||
stream = es_fopen (filename, "rb");
|
||||
if (!stream)
|
||||
|
@ -282,7 +282,7 @@ gpgtar_list (const char *filename, int decrypt)
|
||||
if (filename)
|
||||
{
|
||||
if (!strcmp (filename, "-"))
|
||||
stream = es_stdout;
|
||||
stream = es_stdin;
|
||||
else
|
||||
stream = es_fopen (filename, "rb");
|
||||
if (!stream)
|
||||
|
Loading…
Reference in New Issue
Block a user