These should have been part of 15767 too.

This commit is contained in:
Rob Landley
2006-08-03 17:58:17 +00:00
parent 7478804b78
commit 86b4d64aa3
9 changed files with 34 additions and 61 deletions

View File

@@ -67,7 +67,7 @@ int cpio_main(int argc, char **argv)
}
}
if (cpio_filename) { /* CPIO_OPT_FILE */
archive_handle->src_fd = bb_xopen(cpio_filename, O_RDONLY);
archive_handle->src_fd = xopen(cpio_filename, O_RDONLY);
archive_handle->seek = seek_by_jump;
}
if (opt & CPIO_OPT_CREATE_LEADING_DIR) {

View File

@@ -1187,7 +1187,7 @@ int gzip_main(int argc, char **argv)
ALLOC(ush, tab_prefix, 1L << BITS);
/* Initialise the CRC32 table */
crc_32_tab = bb_crc32_filltable(0);
crc_32_tab = crc32_filltable(0);
clear_bufs();
part_nb = 0;
@@ -1209,7 +1209,7 @@ int gzip_main(int argc, char **argv)
inFileNum = STDIN_FILENO;
outFileNum = STDOUT_FILENO;
} else {
inFileNum = bb_xopen3(argv[i], O_RDONLY, 0);
inFileNum = xopen3(argv[i], O_RDONLY, 0);
if (fstat(inFileNum, &statBuf) < 0)
bb_perror_msg_and_die("%s", argv[i]);
time_stamp = statBuf.st_ctime;

View File

@@ -541,7 +541,7 @@ static llist_t *append_file_list_to_list(llist_t *list)
llist_t *newlist = NULL;
while (cur) {
src_stream = bb_xfopen(cur->data, "r");
src_stream = xfopen(cur->data, "r");
tmp = cur;
cur = cur->link;
free(tmp);
@@ -824,12 +824,12 @@ int tar_main(int argc, char **argv)
tar_handle->src_fd = fileno(tar_stream);
tar_handle->seek = seek_by_char;
} else {
tar_handle->src_fd = bb_xopen(tar_filename, flags);
tar_handle->src_fd = xopen(tar_filename, flags);
}
}
if (base_dir)
bb_xchdir(base_dir);
xchdir(base_dir);
/* create an archive */
if (ENABLE_FEATURE_TAR_CREATE && (opt & CTX_CREATE)) {