Skip to content

Commit

Permalink
update archive/tar patch for go 1.16
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jun 10, 2021
1 parent ae5ddd2 commit f400e84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ index 868105f338..9640ed4bab 100644
@@ -8,10 +8,7 @@ package tar

import (
"os"
"io/fs"
- "os/user"
"runtime"
- "strconv"
Expand All @@ -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 {
Expand Down

0 comments on commit f400e84

Please sign in to comment.