diff options
author | Werner Koch <[email protected]> | 2006-04-19 13:24:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-04-19 13:24:36 +0000 |
commit | d0907e64f473b743ec7a6888583e19502b804ca2 (patch) | |
tree | 455edb5bd2b75ce96b967fc398160f3adb989a66 /g10/exec.c | |
parent | Merged with gpg 1.4.3 code. (diff) | |
download | gnupg-d0907e64f473b743ec7a6888583e19502b804ca2.tar.gz gnupg-d0907e64f473b743ec7a6888583e19502b804ca2.zip |
Continued with merging.
Still does not build.
Diffstat (limited to '')
-rw-r--r-- | g10/exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/exec.c b/g10/exec.c index 839964b1d..cdc86e16b 100644 --- a/g10/exec.c +++ b/g10/exec.c @@ -438,8 +438,8 @@ int exec_write(struct exec_info **info,const char *program, (*info)->tochild=fdopen(to[1],binary?"wb":"w"); if((*info)->tochild==NULL) { + ret = gpg_error_from_errno (errno); close(to[1]); - ret=G10ERR_WRITE_FILE; goto fail; } @@ -448,8 +448,8 @@ int exec_write(struct exec_info **info,const char *program, (*info)->fromchild=iobuf_fdopen(from[0],"r"); if((*info)->fromchild==NULL) { + ret = gpg_error_from_errno (errno); close(from[0]); - ret=G10ERR_READ_FILE; goto fail; } @@ -547,9 +547,9 @@ int exec_read(struct exec_info *info) } if(info->fromchild==NULL) { + ret = gpg_error_from_errno (errno); log_error(_("unable to read external program response: %s\n"), strerror(errno)); - ret=G10ERR_READ_FILE; goto fail; } |