From f3839fe81ddd86632c1a4d70986bbe7e3a751fc2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 1 Apr 2010 13:24:55 +0000 Subject: Use gpg_err_set_errno to assign values to ERRNO. --- g10/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g10/exec.c') 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) { -- cgit v1.2.3