aboutsummaryrefslogtreecommitdiff
path: root/dpkg.c
diff options
context:
space:
mode:
Diffstat (limited to 'dpkg.c')
-rw-r--r--dpkg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dpkg.c b/dpkg.c
index 203b64d98..020a68a90 100644
--- a/dpkg.c
+++ b/dpkg.c
@@ -662,12 +662,12 @@ static int dpkg_dounpack(package_t *pkg)
662 /* extract the control files */ 662 /* extract the control files */
663 info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1); 663 info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1);
664 sprintf(info_prefix, "%s/%s.", infodir, pkg->package); 664 sprintf(info_prefix, "%s/%s.", infodir, pkg->package);
665 deb_extract(pkg->package, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); 665 deb_extract(pkg->filename, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL);
666 666
667 /* Create the list file */ 667 /* Create the list file */
668 strcat(info_prefix, "list"); 668 strcat(info_prefix, "list");
669 out_stream = wfopen(info_prefix, "w"); 669 out_stream = wfopen(info_prefix, "w");
670 deb_extract(pkg->package, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); 670 deb_extract(pkg->filename, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL);
671 fclose(out_stream); 671 fclose(out_stream);
672 672
673 pkg->state_want = state_want_install; 673 pkg->state_want = state_want_install;