diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-05 18:30:38 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-05 18:30:38 +0000 |
commit | 4e2439ad27b6d25e801fe59557760050a828bb35 (patch) | |
tree | 718aa44b3e35c860f55c9b08911e501f4c6b2df9 | |
parent | 911af57ff820432b2b194a02e6c11a0f10be7b50 (diff) | |
download | busybox-w32-4e2439ad27b6d25e801fe59557760050a828bb35.tar.gz busybox-w32-4e2439ad27b6d25e801fe59557760050a828bb35.tar.bz2 busybox-w32-4e2439ad27b6d25e801fe59557760050a828bb35.zip |
It seems all the stdout munging was useless anyways, since
deb_extract and all its called functions do nothing with
stdout anyways. Axe that stuff.
-Erik
-rw-r--r-- | archival/dpkg.c | 3 | ||||
-rw-r--r-- | dpkg.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index dc0b23e8e..af200e11e 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -583,7 +583,6 @@ static int dpkg_dounpack(package_t *pkg) | |||
583 | char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst", | 583 | char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst", |
584 | "/conffiles", "/md5sums", "/shlibs", "/templates" }; | 584 | "/conffiles", "/md5sums", "/shlibs", "/templates" }; |
585 | char buf[1024], buf2[1024]; | 585 | char buf[1024], buf2[1024]; |
586 | FILE *myfile = stdout; | ||
587 | 586 | ||
588 | DPRINTF("Unpacking %s\n", pkg->package); | 587 | DPRINTF("Unpacking %s\n", pkg->package); |
589 | 588 | ||
@@ -615,9 +614,7 @@ static int dpkg_dounpack(package_t *pkg) | |||
615 | strcpy(lst_file, infodir); | 614 | strcpy(lst_file, infodir); |
616 | strcat(lst_file, pkg->package); | 615 | strcat(lst_file, pkg->package); |
617 | strcat(lst_file, ".list"); | 616 | strcat(lst_file, ".list"); |
618 | outfp = freopen(lst_file, "w", myfile); | ||
619 | deb_extract(dpkg_deb_list, NULL, pkg->file); | 617 | deb_extract(dpkg_deb_list, NULL, pkg->file); |
620 | myfile = freopen(NULL, "w", outfp); | ||
621 | 618 | ||
622 | printf("done\n"); | 619 | printf("done\n"); |
623 | getchar(); | 620 | getchar(); |
@@ -583,7 +583,6 @@ static int dpkg_dounpack(package_t *pkg) | |||
583 | char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst", | 583 | char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst", |
584 | "/conffiles", "/md5sums", "/shlibs", "/templates" }; | 584 | "/conffiles", "/md5sums", "/shlibs", "/templates" }; |
585 | char buf[1024], buf2[1024]; | 585 | char buf[1024], buf2[1024]; |
586 | FILE *myfile = stdout; | ||
587 | 586 | ||
588 | DPRINTF("Unpacking %s\n", pkg->package); | 587 | DPRINTF("Unpacking %s\n", pkg->package); |
589 | 588 | ||
@@ -615,9 +614,7 @@ static int dpkg_dounpack(package_t *pkg) | |||
615 | strcpy(lst_file, infodir); | 614 | strcpy(lst_file, infodir); |
616 | strcat(lst_file, pkg->package); | 615 | strcat(lst_file, pkg->package); |
617 | strcat(lst_file, ".list"); | 616 | strcat(lst_file, ".list"); |
618 | outfp = freopen(lst_file, "w", myfile); | ||
619 | deb_extract(dpkg_deb_list, NULL, pkg->file); | 617 | deb_extract(dpkg_deb_list, NULL, pkg->file); |
620 | myfile = freopen(NULL, "w", outfp); | ||
621 | 618 | ||
622 | printf("done\n"); | 619 | printf("done\n"); |
623 | getchar(); | 620 | getchar(); |