1
// Copyright 2012 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
17
sysStat = func(fi os.FileInfo, h *tar.Header) error {
18
sys, ok := fi.Sys().(*syscall.Stat_t)
24
// TODO(bradfitz): populate username & group. os/user
25
// doesn't cache LookupId lookups, and lacks group
27
h.AccessTime = time.Unix(sys.Atimespec.Unix())
28
h.ChangeTime = time.Unix(sys.Ctimespec.Unix())
29
// TODO(bradfitz): major/minor device numbers?