diff options
author | Rob Landley <rob@landley.net> | 2006-08-03 17:58:17 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-03 17:58:17 +0000 |
commit | 86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74 (patch) | |
tree | b3002e01131f99581c1be3462b96b2f2c40408f4 /archival | |
parent | 7478804b783619762a52a740037126ef8711acc2 (diff) | |
download | busybox-w32-86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74.tar.gz busybox-w32-86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74.tar.bz2 busybox-w32-86b4d64aa3f5ca4c2824a8948541b0e18dfe0a74.zip |
These should have been part of 15767 too.
Diffstat (limited to 'archival')
-rw-r--r-- | archival/cpio.c | 2 | ||||
-rw-r--r-- | archival/gzip.c | 4 | ||||
-rw-r--r-- | archival/tar.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/archival/cpio.c b/archival/cpio.c index 3576c8456..48b688e79 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -67,7 +67,7 @@ int cpio_main(int argc, char **argv) | |||
67 | } | 67 | } |
68 | } | 68 | } |
69 | if (cpio_filename) { /* CPIO_OPT_FILE */ | 69 | if (cpio_filename) { /* CPIO_OPT_FILE */ |
70 | archive_handle->src_fd = bb_xopen(cpio_filename, O_RDONLY); | 70 | archive_handle->src_fd = xopen(cpio_filename, O_RDONLY); |
71 | archive_handle->seek = seek_by_jump; | 71 | archive_handle->seek = seek_by_jump; |
72 | } | 72 | } |
73 | if (opt & CPIO_OPT_CREATE_LEADING_DIR) { | 73 | if (opt & CPIO_OPT_CREATE_LEADING_DIR) { |
diff --git a/archival/gzip.c b/archival/gzip.c index 486f78f88..0962a00a7 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -1187,7 +1187,7 @@ int gzip_main(int argc, char **argv) | |||
1187 | ALLOC(ush, tab_prefix, 1L << BITS); | 1187 | ALLOC(ush, tab_prefix, 1L << BITS); |
1188 | 1188 | ||
1189 | /* Initialise the CRC32 table */ | 1189 | /* Initialise the CRC32 table */ |
1190 | crc_32_tab = bb_crc32_filltable(0); | 1190 | crc_32_tab = crc32_filltable(0); |
1191 | 1191 | ||
1192 | clear_bufs(); | 1192 | clear_bufs(); |
1193 | part_nb = 0; | 1193 | part_nb = 0; |
@@ -1209,7 +1209,7 @@ int gzip_main(int argc, char **argv) | |||
1209 | inFileNum = STDIN_FILENO; | 1209 | inFileNum = STDIN_FILENO; |
1210 | outFileNum = STDOUT_FILENO; | 1210 | outFileNum = STDOUT_FILENO; |
1211 | } else { | 1211 | } else { |
1212 | inFileNum = bb_xopen3(argv[i], O_RDONLY, 0); | 1212 | inFileNum = xopen3(argv[i], O_RDONLY, 0); |
1213 | if (fstat(inFileNum, &statBuf) < 0) | 1213 | if (fstat(inFileNum, &statBuf) < 0) |
1214 | bb_perror_msg_and_die("%s", argv[i]); | 1214 | bb_perror_msg_and_die("%s", argv[i]); |
1215 | time_stamp = statBuf.st_ctime; | 1215 | time_stamp = statBuf.st_ctime; |
diff --git a/archival/tar.c b/archival/tar.c index 426176bd2..c49434713 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -541,7 +541,7 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
541 | llist_t *newlist = NULL; | 541 | llist_t *newlist = NULL; |
542 | 542 | ||
543 | while (cur) { | 543 | while (cur) { |
544 | src_stream = bb_xfopen(cur->data, "r"); | 544 | src_stream = xfopen(cur->data, "r"); |
545 | tmp = cur; | 545 | tmp = cur; |
546 | cur = cur->link; | 546 | cur = cur->link; |
547 | free(tmp); | 547 | free(tmp); |
@@ -824,12 +824,12 @@ int tar_main(int argc, char **argv) | |||
824 | tar_handle->src_fd = fileno(tar_stream); | 824 | tar_handle->src_fd = fileno(tar_stream); |
825 | tar_handle->seek = seek_by_char; | 825 | tar_handle->seek = seek_by_char; |
826 | } else { | 826 | } else { |
827 | tar_handle->src_fd = bb_xopen(tar_filename, flags); | 827 | tar_handle->src_fd = xopen(tar_filename, flags); |
828 | } | 828 | } |
829 | } | 829 | } |
830 | 830 | ||
831 | if (base_dir) | 831 | if (base_dir) |
832 | bb_xchdir(base_dir); | 832 | xchdir(base_dir); |
833 | 833 | ||
834 | /* create an archive */ | 834 | /* create an archive */ |
835 | if (ENABLE_FEATURE_TAR_CREATE && (opt & CTX_CREATE)) { | 835 | if (ENABLE_FEATURE_TAR_CREATE && (opt & CTX_CREATE)) { |