fix: trim and ignore './' directories (#16642)

This commit is contained in:
Harshavardhana 2023-02-17 07:15:03 -08:00 committed by GitHub
parent e470268c7c
commit 98a84d88e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,8 @@ func untar(ctx context.Context, r io.Reader, putObject func(reader io.Reader, in
}
name := header.Name
if name == slashSeparator {
switch path.Clean(name) {
case ".", slashSeparator:
continue
}