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
|
@ -463,7 +463,7 @@ exec_write(struct exec_info **info,const char *program,
|
|||
if( is_secured_filename ((*info)->tempfile_in) )
|
||||
{
|
||||
(*info)->tochild = NULL;
|
||||
errno = EPERM;
|
||||
gpg_err_set_errno (EPERM);
|
||||
}
|
||||
else
|
||||
(*info)->tochild=fopen((*info)->tempfile_in,binary?"wb":"w");
|
||||
|
@ -545,7 +545,7 @@ exec_read(struct exec_info *info)
|
|||
{
|
||||
iobuf_close (info->fromchild);
|
||||
info->fromchild = NULL;
|
||||
errno = EPERM;
|
||||
gpg_err_set_errno (EPERM);
|
||||
}
|
||||
if(info->fromchild==NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue