aboutsummaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2000-01-27 16:50:45 +0000
committerWerner Koch <[email protected]>2000-01-27 16:50:45 +0000
commitbaa30ad117e12c5182a78ede84c5103bea23616b (patch)
treef1d174362ee1855c5af77dcb917451e026c0a8d5 /g10/openfile.c
parentSee ChangeLog: Mon Jan 24 22:24:38 CET 2000 Werner Koch (diff)
downloadgnupg-baa30ad117e12c5182a78ede84c5103bea23616b.tar.gz
gnupg-baa30ad117e12c5182a78ede84c5103bea23616b.zip
See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner Koch
Diffstat (limited to '')
-rw-r--r--g10/openfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/openfile.c b/g10/openfile.c
index 60910031a..0b768fe5e 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -161,7 +161,7 @@ open_outfile( const char *iname, int mode, IOBUF *a )
if( (!iname || (*iname=='-' && !iname[1])) && !opt.outfile ) {
if( !(*a = iobuf_create(NULL)) ) {
log_error(_("%s: can't open: %s\n"), "[stdout]", strerror(errno) );
- rc = G10ERR_CREATE_FILE;
+ rc = GPGERR_CREATE_FILE;
}
else if( opt.verbose )
log_info(_("writing to stdout\n"));
@@ -209,13 +209,13 @@ open_outfile( const char *iname, int mode, IOBUF *a )
if( overwrite_filep( name ) ) {
if( !(*a = iobuf_create( name )) ) {
log_error(_("%s: can't create: %s\n"), name, strerror(errno) );
- rc = G10ERR_CREATE_FILE;
+ rc = GPGERR_CREATE_FILE;
}
else if( opt.verbose )
log_info(_("writing to `%s'\n"), name );
}
else
- rc = G10ERR_FILE_EXISTS;
+ rc = GPGERR_FILE_EXISTS;
gcry_free(buf);
}
return rc;