mirror of https://github.com/pkg/sftp.git
go tag cleanup, force Stat_t.Nlink to uint64 (GOARCH=386 is uint32)
This commit is contained in:
parent
0526044933
commit
f71e354eb3
|
@ -1,5 +1,4 @@
|
|||
// +build darwin freebsd netbsd
|
||||
// +build cgo
|
||||
|
||||
package sftp
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !cgo plan9 windows android
|
||||
// +build plan9 windows android
|
||||
|
||||
package sftp
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// +build aix dragonfly !android,linux openbsd solaris
|
||||
// +build cgo
|
||||
|
||||
package sftp
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// +build plan9
|
||||
// +build cgo
|
||||
|
||||
package sftp
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !cgo windows android
|
||||
// +build windows android
|
||||
|
||||
package sftp
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
// +build plan9
|
||||
|
||||
package sftp
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in New Issue