Allow unarchive to redirect stdout (tobe used by dpkg applet)

This commit is contained in:
Glenn L McGrath
2001-07-11 17:32:14 +00:00
parent 481d19b38e
commit c127008840
7 changed files with 9 additions and 9 deletions

View File

@@ -85,7 +85,7 @@ extern int cpio_main(int argc, char **argv)
optind++;
}
unarchive(src_stream, &get_header_cpio, extract_function, "./", extract_names);
unarchive(src_stream, stdout, &get_header_cpio, extract_function, "./", extract_names);
if (oldmask) umask(oldmask); /* Restore umask if we changed it */
return EXIT_SUCCESS;
}