Commit c9ac7dd4 authored by Bernhard Link's avatar Bernhard Link

bugfix to get larger control-files read

parent b60cb969
......@@ -111,6 +111,12 @@ retvalue extractcontrol(char **control,const char *debfile) {
close(pipe1[0]);close(pipe1[1]);
close(pipe2[1]);
// read data:
//TODO: check return values...
f = gzdopen(pipe2[0],"r");
*control = chunk_read(f);
gzclose(f);
while( ar != -1 || tar != -1 ) {
pid=wait(&status);
if( pid < 0 ) {
......@@ -136,14 +142,5 @@ retvalue extractcontrol(char **control,const char *debfile) {
}
}
if( result == RET_OK ) {
// read data;
//TODO: check return values...
f = gzdopen(pipe2[0],"r");
*control = chunk_read(f);
gzclose(f);
} else
close(pipe2[0]);
return result;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment