Browse code

update archive/tar patch for go 1.16

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f400e84a43817e0977a8a2980e75ed8050a13ce0)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2021/05/20 18:19:22
Showing 1 changed files
... ...
@@ -23,7 +23,7 @@ index 868105f338..9640ed4bab 100644
23 23
 @@ -8,10 +8,7 @@ package tar
24 24
  
25 25
  import (
26
- 	"os"
26
+	"io/fs"
27 27
 -	"os/user"
28 28
  	"runtime"
29 29
 -	"strconv"
... ...
@@ -39,7 +39,7 @@ index 868105f338..9640ed4bab 100644
39 39
 -// The downside is that renaming uname or gname by the OS never takes effect.
40 40
 -var userMap, groupMap sync.Map // map[int]string
41 41
 -
42
- func statUnix(fi os.FileInfo, h *Header) error {
42
+ func statUnix(fi fs.FileInfo, h *Header) error {
43 43
  	sys, ok := fi.Sys().(*syscall.Stat_t)
44 44
  	if !ok {
45 45
 @@ -31,22 +24,9 @@ func statUnix(fi os.FileInfo, h *Header) error {