aboutsummaryrefslogblamecommitdiff
path: root/sftp/request-unix.go
blob: 50b08a38d3c495662f6b02242268a8bbbf0768e8 (plain) (tree)


























                                                        
// +build !windows,!plan9

package sftp

import (
	"errors"
	"syscall"
)

func fakeFileInfoSys() interface{} {
	return &syscall.Stat_t{Uid: 65534, Gid: 65534}
}

func testOsSys(sys interface{}) error {
	fstat := sys.(*FileStat)
	if fstat.UID != uint32(65534) {
		return errors.New("Uid failed to match")
	}
	if fstat.GID != uint32(65534) {
		return errors.New("Gid failed to match")
	}
	return nil
}

func toLocalPath(p string) string {
	return p
}