1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Some exec cleanups and tweaks for photo ID and keyserver execution

This commit is contained in:
David Shaw 2001-12-27 20:48:05 +00:00
parent 2450c71ac3
commit 1a2d0ebc11
10 changed files with 107 additions and 44 deletions

View file

@ -236,12 +236,18 @@ void show_photo(const struct user_attribute *attr,PKT_public_key *pk)
command[PHOTO_COMMAND_MAXLEN-1]='\0';
if(exec_write(&spawn,NULL,command,1,1)!=0)
goto fail;
{
exec_finish(spawn);
goto fail;
}
fwrite(attr->data,attr->len,1,spawn->tochild);
if(exec_read(spawn)!=0)
goto fail;
{
exec_finish(spawn);
goto fail;
}
if(exec_finish(spawn)!=0)
goto fail;