summaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-08-08 21:27:00 +0200
committerWerner Koch <wk@gnupg.org>1998-08-08 21:27:00 +0200
commit6ccf4e0f80547ecaf2df19443093d9a53e7dc57e (patch)
treea5ea0d7ce2a6eb8a7f74ccfaf3921b08e7ec4997 /g10/plaintext.c
parentnew (diff)
downloadgnupg2-6ccf4e0f80547ecaf2df19443093d9a53e7dc57e.tar.xz
gnupg2-6ccf4e0f80547ecaf2df19443093d9a53e7dc57e.zip
ready for a new release
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r--g10/plaintext.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c
index 1a22ecdbd..914be8f20 100644
--- a/g10/plaintext.c
+++ b/g10/plaintext.c
@@ -30,6 +30,7 @@
#include "ttyio.h"
#include "filter.h"
#include "main.h"
+#include "status.h"
#include "i18n.h"
@@ -109,9 +110,8 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx,
/* no filename or "-" given; write to stdout */
fp = stdout;
}
- else if( (rc=overwrite_filep( fname )) ) {
- if( rc == -1 )
- rc = G10ERR_CREATE_FILE;
+ else if( !overwrite_filep( fname ) ) {
+ rc = G10ERR_CREATE_FILE;
goto leave;
}
@@ -207,8 +207,9 @@ ask_for_detached_datafile( md_filter_context_t *mfx, const char *inname )
tty_printf("Detached signature.\n");
do {
m_free(answer);
- answer = tty_get("Please enter name of data file: ");
- tty_kill_prompt();
+ answer = cpr_get(N_("detached_signature.filename"),
+ _("Please enter name of data file: "));
+ cpr_kill_prompt();
if( any && !*answer ) {
rc = G10ERR_READ_FILE;
goto leave;