update archive/tar patch for go 1.16

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2021-05-20 11:19:22 +02:00
parent ae5ddd257c
commit f400e84a43
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -23,7 +23,7 @@ index 868105f338..9640ed4bab 100644
@@ -8,10 +8,7 @@ package tar
import (
"os"
"io/fs"
- "os/user"
"runtime"
- "strconv"
@ -39,7 +39,7 @@ index 868105f338..9640ed4bab 100644
-// The downside is that renaming uname or gname by the OS never takes effect.
-var userMap, groupMap sync.Map // map[int]string
-
func statUnix(fi os.FileInfo, h *Header) error {
func statUnix(fi fs.FileInfo, h *Header) error {
sys, ok := fi.Sys().(*syscall.Stat_t)
if !ok {
@@ -31,22 +24,9 @@ func statUnix(fi os.FileInfo, h *Header) error {