mirror of https://github.com/pkg/sftp.git
server integration test: add /usr/lib/ssh/sftp-server to search paths
os some distro, for example ArchLinux, the sftp-server CLI is in this path
This commit is contained in:
parent
5616182052
commit
07905cb843
|
@ -39,6 +39,7 @@ func TestMain(m *testing.M) {
|
|||
lookSFTPServer := []string{
|
||||
"/usr/libexec/sftp-server",
|
||||
"/usr/lib/openssh/sftp-server",
|
||||
"/usr/lib/ssh/sftp-server",
|
||||
}
|
||||
sftpServer, _ := exec.LookPath("sftp-server")
|
||||
if len(sftpServer) == 0 {
|
||||
|
|
Loading…
Reference in New Issue