diff options
author | Werner Koch <wk@gnupg.org> | 2006-04-19 15:24:36 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2006-04-19 15:24:36 +0200 |
commit | d0907e64f473b743ec7a6888583e19502b804ca2 (patch) | |
tree | 455edb5bd2b75ce96b967fc398160f3adb989a66 /g10/dearmor.c | |
parent | Merged with gpg 1.4.3 code. (diff) | |
download | gnupg2-d0907e64f473b743ec7a6888583e19502b804ca2.tar.xz gnupg2-d0907e64f473b743ec7a6888583e19502b804ca2.zip |
Continued with merging.
Still does not build.
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; } |