mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
use internal-sftp
Signed-off-by: Abdelrahman Youssef <abdelrahmanyossef12@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
efc1176232
commit
3227a4cae0
@@ -15,6 +15,13 @@
|
|||||||
static int
|
static int
|
||||||
sshd_setup(void **state)
|
sshd_setup(void **state)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* Without root permissions, the exec-ed SFTP server does not inherit some
|
||||||
|
* wrappers so we use internal-sftp for this test, which does not have this
|
||||||
|
* issue.
|
||||||
|
*/
|
||||||
|
setenv("TORTURE_SFTP_SERVER", "internal-sftp", 1);
|
||||||
|
|
||||||
torture_setup_sshd_server(state, false);
|
torture_setup_sshd_server(state, false);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -22,6 +29,7 @@ sshd_setup(void **state)
|
|||||||
static int
|
static int
|
||||||
sshd_teardown(void **state)
|
sshd_teardown(void **state)
|
||||||
{
|
{
|
||||||
|
unsetenv("TORTURE_SFTP_SERVER");
|
||||||
torture_teardown_sshd_server(state);
|
torture_teardown_sshd_server(state);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user