[Pkg-gnupg-commit] [gnupg2] 58/160: tools/gpgtar: Fix handling of '-'.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Jul 15 09:36:36 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch upstream
in repository gnupg2.
commit 4819f687c48c7972c39ae29c7af1e891a4d57360
Author: Justus Winter <justus at g10code.com>
Date: Tue Jun 28 15:03:07 2016 +0200
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 at g10code.com>
---
tools/gpgtar-extract.c | 2 +-
tools/gpgtar-list.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/gpgtar-extract.c b/tools/gpgtar-extract.c
index 866215b..cee609c 100644
--- a/tools/gpgtar-extract.c
+++ b/tools/gpgtar-extract.c
@@ -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)
diff --git a/tools/gpgtar-list.c b/tools/gpgtar-list.c
index 1d59d9c..cb2e700 100644
--- a/tools/gpgtar-list.c
+++ b/tools/gpgtar-list.c
@@ -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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list