Changed gz_open to ruturn a stream
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 20 Jun 2001 07:54:15 +0000 (07:54 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 20 Jun 2001 07:54:15 +0000 (07:54 -0000)
archival/tar.c
tar.c

index f31859e..0cb638a 100644 (file)
@@ -274,7 +274,7 @@ extern int tar_main(int argc, char **argv)
                /* unzip tarFd in a seperate process */
                if (unzipFlag == TRUE) {
                        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");
                        }
                }
diff --git a/tar.c b/tar.c
index f31859e..0cb638a 100644 (file)
--- a/tar.c
+++ b/tar.c
@@ -274,7 +274,7 @@ extern int tar_main(int argc, char **argv)
                /* unzip tarFd in a seperate process */
                if (unzipFlag == TRUE) {
                        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");
                        }
                }