mirror of
https://github.com/restic/restic.git
synced 2024-12-22 15:57:07 +00:00
fix lint issue with function name 'tarId'
See https://github.com/golang/lint/issues/89 and https://github.com/golang/lint/issues/124
This commit is contained in:
parent
050ed616ae
commit
a86a56cf3b
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// substitute a uid or gid of -1 (which was converted to 2^32 - 1) with zero
|
// substitute a uid or gid of -1 (which was converted to 2^32 - 1) with zero
|
||||||
func tarId(id uint32) int {
|
func tarIdentifier(id uint32) int {
|
||||||
if int32(id) == -1 {
|
if int32(id) == -1 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -56,8 +56,8 @@ func (d *Dumper) dumpNodeTar(ctx context.Context, node *restic.Node, w *tar.Writ
|
||||||
Name: filepath.ToSlash(relPath),
|
Name: filepath.ToSlash(relPath),
|
||||||
Size: int64(node.Size),
|
Size: int64(node.Size),
|
||||||
Mode: int64(node.Mode.Perm()), // cIS* constants are added later
|
Mode: int64(node.Mode.Perm()), // cIS* constants are added later
|
||||||
Uid: tarId(node.UID),
|
Uid: tarIdentifier(node.UID),
|
||||||
Gid: tarId(node.GID),
|
Gid: tarIdentifier(node.GID),
|
||||||
Uname: node.User,
|
Uname: node.User,
|
||||||
Gname: node.Group,
|
Gname: node.Group,
|
||||||
ModTime: node.ModTime,
|
ModTime: node.ModTime,
|
||||||
|
|
Loading…
Reference in a new issue