diff options
author | Werner Koch <wk@gnupg.org> | 2010-04-01 15:24:55 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-04-01 15:24:55 +0200 |
commit | f3839fe81ddd86632c1a4d70986bbe7e3a751fc2 (patch) | |
tree | 6fa1386cb24d9477a4d7ca95f6230baa5be6589f /g10/keyring.c | |
parent | Minor cleanups (diff) | |
download | gnupg2-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.tar.xz gnupg2-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.zip |
Use gpg_err_set_errno to assign values to ERRNO.
Diffstat (limited to 'g10/keyring.c')
-rw-r--r-- | g10/keyring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keyring.c b/g10/keyring.c index 72e3ed5a8..bef9b932b 100644 --- a/g10/keyring.c +++ b/g10/keyring.c @@ -1226,7 +1226,7 @@ create_tmp_file (const char *template, if (is_secured_filename (tmpfname)) { *r_fp = NULL; - errno = EPERM; + gpg_err_set_errno (EPERM); } else *r_fp = iobuf_create (tmpfname); @@ -1558,7 +1558,7 @@ do_copy (int mode, const char *fname, KBNODE root, int secret, oldmask=umask(077); if (!secret && is_secured_filename (fname)) { newfp = NULL; - errno = EPERM; + gpg_err_set_errno (EPERM); } else newfp = iobuf_create (fname); |