- use bb_xchdir instead of ignoring eventual errors of chdir

Thanks to Erik Hovland
This commit is contained in:
Bernhard Reutner-Fischer
2006-06-10 11:29:44 +00:00
parent 2d1a6e7c1f
commit 44e216f264
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ void extract_cpio_gz(int fd) {
bb_error_msg_and_die("Invalid gzip magic");
}
check_header_gzip(archive_handle->src_fd);
chdir("/"); // Install RPM's to root
bb_xchdir("/"); // Install RPM's to root
archive_handle->src_fd = open_transformer(archive_handle->src_fd, inflate_gunzip);
archive_handle->offset = 0;