Skip to content

Commit c1184eb

Browse files
committed
Fix "uses unkeyed fields" warnings
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
1 parent c96b5d3 commit c1184eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

storage/drivers/chown_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ func newLChowner() *platformChowner {
1616
}
1717

1818
func (c *platformChowner) LChown(path string, info os.FileInfo, toHost, toContainer *idtools.IDMappings) error {
19-
return &os.PathError{"lchown", path, syscall.EWINDOWS}
19+
return &os.PathError{Op: "lchown", Path: path, Err: syscall.EWINDOWS}
2020
}

storage/pkg/archive/archive_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func handleLChmod(_ *tar.Header, _, _ string, _ os.FileInfo, _ *os.FileMode) err
7373

7474
func getFileUIDGID(_ any) (idtools.IDPair, error) {
7575
// no notion of file ownership mapping yet on Windows
76-
return idtools.IDPair{0, 0}, nil
76+
return idtools.IDPair{UID: 0, GID: 0}, nil
7777
}
7878

7979
// Hardlink without following symlinks

0 commit comments

Comments
 (0)