Skip to content

Commit 593e187

Browse files
n
Change-Id: I7fa6b5b254e6553a23a1a7981baa55da2b802451
1 parent 8676a0a commit 593e187

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
If the argument to [`FileInfoHeader`](/archive/tar#FileInfoHeader) implements the new [`FileInfoNames`](/archive/tar#FileInfoNames) interface,
2-
then the interface methods will be used to set the Uname/Gname of the file header.
1+
If the argument to [`FileInfoHeader`](/archive/tar#FileInfoHeader) implements the new [`FileInfoNames`](/archive/tar#FileInfoNames) interface,
2+
then the interface methods will be used to set the Uname/Gname of the file header.
33
This allows applications to override the system-dependent Uname/Gname lookup.

src/archive/tar/stat_unix.go

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error {
2828
if !ok {
2929
return nil
3030
}
31-
3231
h.Uid = int(sys.Uid)
3332
h.Gid = int(sys.Gid)
3433
if doNameLookups {

0 commit comments

Comments
 (0)