mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Use gpg_err_set_errno to assign values to ERRNO.
This commit is contained in:
parent
492f08ff68
commit
f3839fe81d
18 changed files with 45 additions and 41 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue