mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
Support "-" for --output.
This commit is contained in:
parent
fa3120a1bc
commit
041c6d7261
@ -1,3 +1,8 @@
|
|||||||
|
2010-08-11 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* gpgtar-create.c (gpgtar_create): Allow "-" for stdout in
|
||||||
|
opt.outfile. Switch es_stdout to binary mode.
|
||||||
|
|
||||||
2010-08-09 Werner Koch <wk@g10code.com>
|
2010-08-09 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* watchgnupg.c: Inlcude in.h and inet.h.
|
* watchgnupg.c: Inlcude in.h and inet.h.
|
||||||
|
@ -843,6 +843,9 @@ gpgtar_create (char **inpattern)
|
|||||||
|
|
||||||
if (opt.outfile)
|
if (opt.outfile)
|
||||||
{
|
{
|
||||||
|
if (!strcmp (opt.outfile, "-"))
|
||||||
|
outstream = es_stdout;
|
||||||
|
else
|
||||||
outstream = es_fopen (opt.outfile, "wb");
|
outstream = es_fopen (opt.outfile, "wb");
|
||||||
if (!outstream)
|
if (!outstream)
|
||||||
{
|
{
|
||||||
@ -857,6 +860,9 @@ gpgtar_create (char **inpattern)
|
|||||||
outstream = es_stdout;
|
outstream = es_stdout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (outstream == es_stdout)
|
||||||
|
es_set_binary (es_stdout);
|
||||||
|
|
||||||
for (hdr = scanctrl->flist; hdr; hdr = hdr->next)
|
for (hdr = scanctrl->flist; hdr; hdr = hdr->next)
|
||||||
{
|
{
|
||||||
err = write_file (outstream, hdr);
|
err = write_file (outstream, hdr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user