mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
fix: trim and ignore './' directories (#16642)
This commit is contained in:
parent
e470268c7c
commit
98a84d88e2
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user