mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 12:49:36 +00:00
24 lines
414 B
Go
24 lines
414 B
Go
//go:build !windows && !plan9
|
|
// +build !windows,!plan9
|
|
|
|
package sftp
|
|
|
|
import (
|
|
"errors"
|
|
"syscall"
|
|
)
|
|
|
|
func fakeFileInfoSys() any {
|
|
return &syscall.Stat_t{Uid: 65534, Gid: 65534}
|
|
}
|
|
|
|
func testOsSys(sys any) 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
|
|
}
|