diff options
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r-- | archival/dpkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index a9334df87..451c6fa32 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -912,7 +912,7 @@ static void write_status_file(deb_file_t **deb_file) | |||
912 | /* Create a separate backfile to dpkg */ | 912 | /* Create a separate backfile to dpkg */ |
913 | if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) { | 913 | if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) { |
914 | if (errno != ENOENT) | 914 | if (errno != ENOENT) |
915 | bb_error_msg_and_die("cannot create backup status file"); | 915 | bb_error_msg_and_die("can't create backup status file"); |
916 | /* Its ok if renaming the status file fails because status | 916 | /* Its ok if renaming the status file fails because status |
917 | * file doesnt exist, maybe we are starting from scratch */ | 917 | * file doesnt exist, maybe we are starting from scratch */ |
918 | bb_error_msg("no status file found, creating new one"); | 918 | bb_error_msg("no status file found, creating new one"); |
@@ -1646,7 +1646,7 @@ int dpkg_main(int argc UNUSED_PARAM, char **argv) | |||
1646 | init_archive_deb_control(archive_handle); | 1646 | init_archive_deb_control(archive_handle); |
1647 | deb_file[deb_count]->control_file = deb_extract_control_file_to_buffer(archive_handle, control_list); | 1647 | deb_file[deb_count]->control_file = deb_extract_control_file_to_buffer(archive_handle, control_list); |
1648 | if (deb_file[deb_count]->control_file == NULL) { | 1648 | if (deb_file[deb_count]->control_file == NULL) { |
1649 | bb_error_msg_and_die("cannot extract control file"); | 1649 | bb_error_msg_and_die("can't extract control file"); |
1650 | } | 1650 | } |
1651 | deb_file[deb_count]->filename = xstrdup(argv[0]); | 1651 | deb_file[deb_count]->filename = xstrdup(argv[0]); |
1652 | package_num = fill_package_struct(deb_file[deb_count]->control_file); | 1652 | package_num = fill_package_struct(deb_file[deb_count]->control_file); |