diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-29 12:10:23 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-29 12:10:23 +0000 |
commit | e78189465fdad9f28d985477ac05f2c5a3afb280 (patch) | |
tree | ea8e439001256f7f6da7683399115d009552d777 /archival | |
parent | d4cc0d7783259457083cdd8ded37e20ad232fbd9 (diff) | |
download | busybox-w32-e78189465fdad9f28d985477ac05f2c5a3afb280.tar.gz busybox-w32-e78189465fdad9f28d985477ac05f2c5a3afb280.tar.bz2 busybox-w32-e78189465fdad9f28d985477ac05f2c5a3afb280.zip |
- ls: remove unused variable
- dpkg.c, diff: use xstat
text data bss dec hex filename
848823 9100 645216 1503139 16efa3 busybox_old
848679 9100 645216 1502995 16ef13 busybox_unstripped
bloatcheck is completely useless as it sees -79 for this, which is bogus.
git-svn-id: svn://busybox.net/trunk/busybox@15218 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-rw-r--r-- | archival/dpkg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index c911333e0..32e51257e 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -874,9 +874,7 @@ static void write_status_file(deb_file_t **deb_file) | |||
874 | /* Create a separate backfile to dpkg */ | 874 | /* Create a separate backfile to dpkg */ |
875 | if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) { | 875 | if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) { |
876 | struct stat stat_buf; | 876 | struct stat stat_buf; |
877 | if (stat("/var/lib/dpkg/status", &stat_buf) == 0) { | 877 | xstat("/var/lib/dpkg/status", &stat_buf); |
878 | bb_error_msg_and_die("Couldnt create backup status file"); | ||
879 | } | ||
880 | /* Its ok if renaming the status file fails because status | 878 | /* Its ok if renaming the status file fails because status |
881 | * file doesnt exist, maybe we are starting from scratch */ | 879 | * file doesnt exist, maybe we are starting from scratch */ |
882 | bb_error_msg("No status file found, creating new one"); | 880 | bb_error_msg("No status file found, creating new one"); |