Skip to content

Commit

Permalink
fix: do not handle root folder and the . folder (#1229)
Browse files Browse the repository at this point in the history
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

#### Which issue(s) this PR fixes

Related to
open-component-model/ocm-project#359

Signed-off-by: Gergely Brautigam <[email protected]>
  • Loading branch information
Skarlso authored Jan 7, 2025
1 parent 5168a66 commit 5cc70b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ocm/tools/toi/drivers/docker/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func generateTar(files map[string]blobaccess.BlobAccess, uid int) (io.ReadCloser
dir := path
for dir != "/" {
dir = unix_path.Dir(dir)
if !have[dir] {
if dir != "/" && dir != "." && !have[dir] {
dirHdr := &tar.Header{
Typeflag: tar.TypeDir,
Name: dir,
Expand Down

0 comments on commit 5cc70b2

Please sign in to comment.