aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-04-01 13:24:55 +0000
committerWerner Koch <[email protected]>2010-04-01 13:24:55 +0000
commitf3839fe81ddd86632c1a4d70986bbe7e3a751fc2 (patch)
tree6fa1386cb24d9477a4d7ca95f6230baa5be6589f /g10/import.c
parentMinor cleanups (diff)
downloadgnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.tar.gz
gnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.zip
Use gpg_err_set_errno to assign values to ERRNO.
Diffstat (limited to 'g10/import.c')
-rw-r--r--g10/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/import.c b/g10/import.c
index a46542f65..c1ff93c0f 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -187,7 +187,7 @@ import_keys_internal( IOBUF inp, char **fnames, int nnames,
{
iobuf_close (inp2);
inp2 = NULL;
- errno = EPERM;
+ gpg_err_set_errno (EPERM);
}
if( !inp2 )
log_error(_("can't open `%s': %s\n"), fname, strerror(errno) );