aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-07-22 16:28:40 +0000
committerWerner Koch <[email protected]>2005-07-22 16:28:40 +0000
commita486501c0b848b3de9bc355135f1ffec953e057f (patch)
treee5525626969c81afd367e72502f2830a229c3a97 /g10/encode.c
parent* options.h, g10.c (main), keyedit.c (keyedit_menu): Use --interactive (diff)
downloadgnupg-a486501c0b848b3de9bc355135f1ffec953e057f.tar.gz
gnupg-a486501c0b848b3de9bc355135f1ffec953e057f.zip
* gpg.sgml (http):
* g10.c, options.h: New option --exit-on-status-write-error. * status.c (write_status_text): Make use of this option.
Diffstat (limited to 'g10/encode.c')
-rw-r--r--g10/encode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/encode.c b/g10/encode.c
index c70ed163b..24b7f009e 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -172,6 +172,8 @@ encode_simple( const char *filename, int mode, int use_seskey )
/* prepare iobufs */
inp = iobuf_open(filename);
+ if (inp)
+ iobuf_ioctl (inp,3,1,NULL); /* disable fd caching */
if (inp && is_secured_file (iobuf_get_fd (inp)))
{
iobuf_close (inp);
@@ -472,6 +474,8 @@ encode_crypt( const char *filename, STRLIST remusr, int use_symkey )
/* prepare iobufs */
inp = iobuf_open(filename);
+ if (inp)
+ iobuf_ioctl (inp,3,1,NULL); /* disable fd caching */
if (inp && is_secured_file (iobuf_get_fd (inp)))
{
iobuf_close (inp);
@@ -495,7 +499,6 @@ encode_crypt( const char *filename, STRLIST remusr, int use_symkey )
if( (rc = open_outfile( filename, opt.armor? 1:0, &out )) )
goto leave;
-
if( opt.armor )
iobuf_push_filter( out, armor_filter, &afx );