Skip to content

Commit a73d633

Browse files
authored
Merge pull request #313 from BigVan/20240127
support zfile over tar in turboOCI-apply
2 parents 41bc0db + 92e28f4 commit a73d633

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/turboOCI-apply.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ int main(int argc, char **argv) {
9393

9494
photon::fs::IFile *src_file = nullptr;
9595
auto tarf = open_file(input_path.c_str(), O_RDONLY, 0666);
96+
if (ZFile::is_zfile(tarf) == 1) {
97+
tarf = ZFile::zfile_open_ro(tarf, true, true);
98+
}
9699
DEFER(delete tarf);
97100

98101
if (is_gzfile(tarf)) {

0 commit comments

Comments
 (0)