diff options
author | Werner Koch <[email protected]> | 2010-04-01 13:24:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-04-01 13:24:55 +0000 |
commit | f3839fe81ddd86632c1a4d70986bbe7e3a751fc2 (patch) | |
tree | 6fa1386cb24d9477a4d7ca95f6230baa5be6589f /g10/exec.c | |
parent | Minor cleanups (diff) | |
download | gnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.tar.gz gnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.zip |
Use gpg_err_set_errno to assign values to ERRNO.
Diffstat (limited to 'g10/exec.c')
-rw-r--r-- | g10/exec.c | 4 |
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) { |