diff options
Diffstat (limited to 'g10/decrypt.c')
-rw-r--r-- | g10/decrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/decrypt.c b/g10/decrypt.c index 9a37283c1..39071427a 100644 --- a/g10/decrypt.c +++ b/g10/decrypt.c @@ -66,7 +66,7 @@ decrypt_message( const char *filename ) errno = EPERM; } if( !fp ) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); log_error (_("can't open `%s': %s\n"), print_fname_stdin(filename), gpg_strerror (rc)); return rc; |