Changed gz_open to ruturn a stream

This commit is contained in:
Glenn L McGrath 2001-06-20 07:54:15 +00:00
parent eb1c94078f
commit 8e74bf94f3
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ extern int tar_main(int argc, char **argv)
/* unzip tarFd in a seperate process */ /* unzip tarFd in a seperate process */
if (unzipFlag == TRUE) { if (unzipFlag == TRUE) {
comp_file = fdopen(tarFd, "r"); comp_file = fdopen(tarFd, "r");
if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) { if ((tarFd = fileno(gz_open(comp_file, &pid))) == EXIT_FAILURE) {
error_msg_and_die("Couldnt unzip file"); error_msg_and_die("Couldnt unzip file");
} }
} }

2
tar.c
View File

@ -274,7 +274,7 @@ extern int tar_main(int argc, char **argv)
/* unzip tarFd in a seperate process */ /* unzip tarFd in a seperate process */
if (unzipFlag == TRUE) { if (unzipFlag == TRUE) {
comp_file = fdopen(tarFd, "r"); comp_file = fdopen(tarFd, "r");
if ((tarFd = gz_open(comp_file, &pid)) == EXIT_FAILURE) { if ((tarFd = fileno(gz_open(comp_file, &pid))) == EXIT_FAILURE) {
error_msg_and_die("Couldnt unzip file"); error_msg_and_die("Couldnt unzip file");
} }
} }