Skip to content

Commit

Permalink
Merge pull request #313 from BigVan/20240127
Browse files Browse the repository at this point in the history
support zfile over tar in turboOCI-apply
  • Loading branch information
liulanzheng authored Feb 23, 2024
2 parents 41bc0db + 92e28f4 commit a73d633
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/turboOCI-apply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ int main(int argc, char **argv) {

photon::fs::IFile *src_file = nullptr;
auto tarf = open_file(input_path.c_str(), O_RDONLY, 0666);
if (ZFile::is_zfile(tarf) == 1) {
tarf = ZFile::zfile_open_ro(tarf, true, true);
}
DEFER(delete tarf);

if (is_gzfile(tarf)) {
Expand Down

0 comments on commit a73d633

Please sign in to comment.