Fix a compile error when only using ar, patch by Paul van Gool

This commit is contained in:
Glenn L McGrath 2003-12-05 02:51:21 +00:00
parent 22e1ca382b
commit 142abc18ce

View File

@ -59,7 +59,7 @@ static void data_extract_regular_file(archive_handle_t *archive_handle)
file_header = archive_handle->file_header; file_header = archive_handle->file_header;
dst_fd = bb_xopen(file_header->name, O_WRONLY | O_CREAT); dst_fd = bb_xopen(file_header->name, O_WRONLY | O_CREAT);
bb_copyfd_eof(archive_handle->src_fd, dst_fd, file_header->size); bb_copyfd_size(archive_handle->src_fd, dst_fd, file_header->size);
close(dst_fd); close(dst_fd);
chmod(file_header->name, file_header->mode); chmod(file_header->name, file_header->mode);