From d0907e64f473b743ec7a6888583e19502b804ca2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 19 Apr 2006 13:24:36 +0000 Subject: Continued with merging. Still does not build. --- g10/exec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'g10/exec.c') 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; } -- cgit v1.2.3