diff options
author | Bernhard Reutner-Fischer | 2006-05-29 12:10:23 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-05-29 12:10:23 +0000 |
commit | d2c306e862abf49dd4b1ff1d1bd1a789317b7905 (patch) | |
tree | ea8e439001256f7f6da7683399115d009552d777 /archival | |
parent | 1ec5b2905484b7904aabb01f56c70265fb538c82 (diff) | |
download | busybox-d2c306e862abf49dd4b1ff1d1bd1a789317b7905.zip busybox-d2c306e862abf49dd4b1ff1d1bd1a789317b7905.tar.gz |
- 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.
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 c911333..32e5125 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c @@ -874,9 +874,7 @@ static void write_status_file(deb_file_t **deb_file) /* Create a separate backfile to dpkg */ if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) { struct stat stat_buf; - if (stat("/var/lib/dpkg/status", &stat_buf) == 0) { - bb_error_msg_and_die("Couldnt create backup status file"); - } + xstat("/var/lib/dpkg/status", &stat_buf); /* Its ok if renaming the status file fails because status * file doesnt exist, maybe we are starting from scratch */ bb_error_msg("No status file found, creating new one"); |