diff options
Diffstat (limited to 'g10/dearmor.c')
-rw-r--r-- | g10/dearmor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/dearmor.c b/g10/dearmor.c index dc9a22fad..7f69a1bba 100644 --- a/g10/dearmor.c +++ b/g10/dearmor.c @@ -58,9 +58,9 @@ dearmor_file( const char *fname ) errno = EPERM; } if (!inp) { + rc = gpg_error_from_errno (errno); log_error(_("can't open `%s': %s\n"), fname? fname: "[stdin]", strerror(errno) ); - rc = G10ERR_OPEN_FILE; goto leave; } @@ -107,9 +107,9 @@ enarmor_file( const char *fname ) errno = EPERM; } if (!inp) { + rc = gpg_error_from_errno (errno); log_error(_("can't open `%s': %s\n"), fname? fname: "[stdin]", strerror(errno) ); - rc = G10ERR_OPEN_FILE; goto leave; } |