aboutsummaryrefslogtreecommitdiffstats
path: root/g10/exec.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/exec.c b/g10/exec.c
index 46a2c600d..8f26edadf 100644
--- a/g10/exec.c
+++ b/g10/exec.c
@@ -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)
{