diff options
Diffstat (limited to '')
-rw-r--r-- | g10/openfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/openfile.c b/g10/openfile.c index 8c0601c3e..5e3ae3fa8 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -184,7 +184,7 @@ open_outfile( const char *iname, int mode, IOBUF *a ) if( iobuf_is_pipe_filename (iname) && !opt.outfile ) { *a = iobuf_create(NULL); if( !*a ) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); log_error(_("can't open `%s': %s\n"), "[stdout]", strerror(errno) ); } else if( opt.verbose ) @@ -261,7 +261,7 @@ open_outfile( const char *iname, int mode, IOBUF *a ) *a = iobuf_create( name ); if( !*a ) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); log_error(_("can't create `%s': %s\n"), name, strerror(errno) ); } else if( opt.verbose ) |