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
This commit is contained in:
parent
911af57ff8
commit
4e2439ad27
@ -583,7 +583,6 @@ static int dpkg_dounpack(package_t *pkg)
|
|||||||
char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst",
|
char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst",
|
||||||
"/conffiles", "/md5sums", "/shlibs", "/templates" };
|
"/conffiles", "/md5sums", "/shlibs", "/templates" };
|
||||||
char buf[1024], buf2[1024];
|
char buf[1024], buf2[1024];
|
||||||
FILE *myfile = stdout;
|
|
||||||
|
|
||||||
DPRINTF("Unpacking %s\n", pkg->package);
|
DPRINTF("Unpacking %s\n", pkg->package);
|
||||||
|
|
||||||
@ -615,9 +614,7 @@ static int dpkg_dounpack(package_t *pkg)
|
|||||||
strcpy(lst_file, infodir);
|
strcpy(lst_file, infodir);
|
||||||
strcat(lst_file, pkg->package);
|
strcat(lst_file, pkg->package);
|
||||||
strcat(lst_file, ".list");
|
strcat(lst_file, ".list");
|
||||||
outfp = freopen(lst_file, "w", myfile);
|
|
||||||
deb_extract(dpkg_deb_list, NULL, pkg->file);
|
deb_extract(dpkg_deb_list, NULL, pkg->file);
|
||||||
myfile = freopen(NULL, "w", outfp);
|
|
||||||
|
|
||||||
printf("done\n");
|
printf("done\n");
|
||||||
getchar();
|
getchar();
|
||||||
|
3
dpkg.c
3
dpkg.c
@ -583,7 +583,6 @@ static int dpkg_dounpack(package_t *pkg)
|
|||||||
char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst",
|
char *adminscripts[] = { "/prerm", "/postrm", "/preinst", "/postinst",
|
||||||
"/conffiles", "/md5sums", "/shlibs", "/templates" };
|
"/conffiles", "/md5sums", "/shlibs", "/templates" };
|
||||||
char buf[1024], buf2[1024];
|
char buf[1024], buf2[1024];
|
||||||
FILE *myfile = stdout;
|
|
||||||
|
|
||||||
DPRINTF("Unpacking %s\n", pkg->package);
|
DPRINTF("Unpacking %s\n", pkg->package);
|
||||||
|
|
||||||
@ -615,9 +614,7 @@ static int dpkg_dounpack(package_t *pkg)
|
|||||||
strcpy(lst_file, infodir);
|
strcpy(lst_file, infodir);
|
||||||
strcat(lst_file, pkg->package);
|
strcat(lst_file, pkg->package);
|
||||||
strcat(lst_file, ".list");
|
strcat(lst_file, ".list");
|
||||||
outfp = freopen(lst_file, "w", myfile);
|
|
||||||
deb_extract(dpkg_deb_list, NULL, pkg->file);
|
deb_extract(dpkg_deb_list, NULL, pkg->file);
|
||||||
myfile = freopen(NULL, "w", outfp);
|
|
||||||
|
|
||||||
printf("done\n");
|
printf("done\n");
|
||||||
getchar();
|
getchar();
|
||||||
|
Loading…
Reference in New Issue
Block a user