aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-05 04:50:36 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-05 04:50:36 +0200
commit09e63bb81f12707d31c8c4570931af0196b53a46 (patch)
tree1b550ca677e6cd4fdd70eabda1fd402684b8ec7d /archival
parent9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a (diff)
downloadbusybox-w32-09e63bb81f12707d31c8c4570931af0196b53a46.tar.gz
busybox-w32-09e63bb81f12707d31c8c4570931af0196b53a46.tar.bz2
busybox-w32-09e63bb81f12707d31c8c4570931af0196b53a46.zip
df: fix "df /"
also, clean up mount checks in mkfs/fsck. function old new delta find_mount_point 243 261 +18 sha1_process_block64 497 510 +13 find_main 436 444 +8 display_speed 85 90 +5 df_main 795 793 -2 parse_command 1463 1460 -3 static.ignored_mounts 8 - -8 mkfs_minix_main 2962 2937 -25 fsck_minix_main 3065 2970 -95 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r--archival/libunarchive/data_extract_all.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c
index 444770d27..123d1de74 100644
--- a/archival/libunarchive/data_extract_all.c
+++ b/archival/libunarchive/data_extract_all.c
@@ -21,7 +21,7 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
21 /* Check if the file already exists */ 21 /* Check if the file already exists */
22 if (archive_handle->ah_flags & ARCHIVE_EXTRACT_UNCONDITIONAL) { 22 if (archive_handle->ah_flags & ARCHIVE_EXTRACT_UNCONDITIONAL) {
23 /* Remove the entry if it exists */ 23 /* Remove the entry if it exists */
24 if (((file_header->mode & S_IFMT) != S_IFDIR) 24 if ((!S_ISDIR(file_header->mode))
25 && (unlink(file_header->name) == -1) 25 && (unlink(file_header->name) == -1)
26 && (errno != ENOENT) 26 && (errno != ENOENT)
27 ) { 27 ) {
@@ -132,7 +132,7 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
132#endif 132#endif
133 lchown(file_header->name, file_header->uid, file_header->gid); 133 lchown(file_header->name, file_header->uid, file_header->gid);
134 } 134 }
135 if ((file_header->mode & S_IFMT) != S_IFLNK) { 135 if (S_ISLNK(file_header->mode)) {
136 /* uclibc has no lchmod, glibc is even stranger - 136 /* uclibc has no lchmod, glibc is even stranger -
137 * it has lchmod which seems to do nothing! 137 * it has lchmod which seems to do nothing!
138 * so we use chmod... */ 138 * so we use chmod... */