aboutsummaryrefslogtreecommitdiff
path: root/archival/ar.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /archival/ar.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival/ar.c')
-rw-r--r--archival/ar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/archival/ar.c b/archival/ar.c
index 87968f7be..57ec92719 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -40,7 +40,7 @@
40 40
41static void header_verbose_list_ar(const file_header_t *file_header) 41static void header_verbose_list_ar(const file_header_t *file_header)
42{ 42{
43 const char *mode = mode_string(file_header->mode); 43 const char *mode = bb_mode_string(file_header->mode);
44 char *mtime; 44 char *mtime;
45 45
46 mtime = ctime(&file_header->mtime); 46 mtime = ctime(&file_header->mtime);
@@ -58,7 +58,7 @@ static void data_extract_regular_file(archive_handle_t *archive_handle)
58 int dst_fd; 58 int dst_fd;
59 59
60 file_header = archive_handle->file_header; 60 file_header = archive_handle->file_header;
61 dst_fd = xopen(file_header->name, O_WRONLY | O_CREAT); 61 dst_fd = bb_xopen(file_header->name, O_WRONLY | O_CREAT);
62 archive_copy_file(archive_handle, dst_fd); 62 archive_copy_file(archive_handle, dst_fd);
63 close(dst_fd); 63 close(dst_fd);
64 64
@@ -110,16 +110,16 @@ extern int ar_main(int argc, char **argv)
110 archive_handle->action_header = header_verbose_list_ar; 110 archive_handle->action_header = header_verbose_list_ar;
111 break; 111 break;
112 default: 112 default:
113 show_usage(); 113 bb_show_usage();
114 } 114 }
115 } 115 }
116 116
117 /* check the src filename was specified */ 117 /* check the src filename was specified */
118 if (optind == argc) { 118 if (optind == argc) {
119 show_usage(); 119 bb_show_usage();
120 } 120 }
121 121
122 archive_handle->src_fd = xopen(argv[optind++], O_RDONLY); 122 archive_handle->src_fd = bb_xopen(argv[optind++], O_RDONLY);
123 123
124 /* TODO: This is the same as in tar, seperate function ? */ 124 /* TODO: This is the same as in tar, seperate function ? */
125 while (optind < argc) { 125 while (optind < argc) {
@@ -133,7 +133,7 @@ extern int ar_main(int argc, char **argv)
133#else 133#else
134 archive_xread_all(archive_handle, magic, 7); 134 archive_xread_all(archive_handle, magic, 7);
135 if (strncmp(magic, "!<arch>", 7) != 0) { 135 if (strncmp(magic, "!<arch>", 7) != 0) {
136 error_msg_and_die("Invalid ar magic"); 136 bb_error_msg_and_die("Invalid ar magic");
137 } 137 }
138 archive_handle->offset += 7; 138 archive_handle->offset += 7;
139 139