go tag cleanup, force Stat_t.Nlink to uint64 (GOARCH=386 is uint32)

This commit is contained in:
Cassondra Foesch 2021-04-25 19:05:07 +00:00
parent 0526044933
commit f71e354eb3
7 changed files with 3 additions and 9 deletions

View File

@ -1,5 +1,4 @@
// +build darwin freebsd netbsd
// +build cgo
package sftp

View File

@ -1,4 +1,4 @@
// +build !cgo plan9 windows android
// +build plan9 windows android
package sftp

View File

@ -1,5 +1,4 @@
// +build aix dragonfly !android,linux openbsd solaris
// +build cgo
package sftp

View File

@ -1,5 +1,4 @@
// +build plan9
// +build cgo
package sftp

View File

@ -1,4 +1,4 @@
// +build !cgo windows android
// +build windows android
package sftp

View File

@ -1,5 +1,4 @@
// +build aix darwin dragonfly freebsd !android,linux netbsd openbsd solaris
// +build cgo
package sftp
@ -14,7 +13,7 @@ func lsLinksUIDGID(fi os.FileInfo) (numLinks uint64, uid, gid string) {
switch sys := fi.Sys().(type) {
case *syscall.Stat_t:
numLinks = sys.Nlink
numLinks = uint64(sys.Nlink)
uid = lsUsername(lsFormatID(sys.Uid))
gid = lsGroupName(lsFormatID(sys.Gid))
default:

View File

@ -1,5 +1,3 @@
// +build plan9
package sftp
import (