mirror of https://github.com/mirror/busybox.git
Fixing bug which causes tar to close stdin
Fixing bug which causes tar to close stdin when running with the flag -T with "-" (reading input from stdin)pull/10/head
parent
d80eecb868
commit
9950a5a442
|
@ -744,7 +744,11 @@ static llist_t *append_file_list_to_list(llist_t *list)
|
|||
*cp = '\0';
|
||||
llist_add_to_end(&newlist, line);
|
||||
}
|
||||
fclose(src_stream);
|
||||
|
||||
if(src_stream != stdin)
|
||||
{
|
||||
fclose(src_stream);
|
||||
}
|
||||
}
|
||||
return newlist;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue