From 03d3322e5fb928d48ea4192fd2f2cc851d791421 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 14 Sep 2006 16:50:33 +0000 Subject: Take advantage of newer gpg-error features. --- g10/encode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g10/encode.c') diff --git a/g10/encode.c b/g10/encode.c index 292e2bc5a..1ce5e01de 100644 --- a/g10/encode.c +++ b/g10/encode.c @@ -189,7 +189,7 @@ encode_simple( const char *filename, int mode, int use_seskey ) errno = EPERM; } if( !inp ) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); log_error(_("can't open `%s': %s\n"), filename? filename: "[stdin]", strerror(errno) ); return rc; @@ -481,7 +481,7 @@ encode_crypt( const char *filename, STRLIST remusr, int use_symkey ) errno = EPERM; } if( !inp ) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); log_error(_("can't open `%s': %s\n"), filename? filename: "[stdin]", gpg_strerror (rc) ); -- cgit