mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: Describe reason for using internal-sftp
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -16,9 +16,10 @@ static int
|
|||||||
sshd_setup(void **state)
|
sshd_setup(void **state)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Without root permissions, the exec-ed SFTP server does not inherit some
|
* The OpenSSH invokes the sftp server command with execve(), which does
|
||||||
* wrappers so we use internal-sftp for this test, which does not have this
|
* not inherit the environment variables (including LD_PRELOAD, which
|
||||||
* issue.
|
* is needed for the fs_wrapper). Using `internal-sftp` works around this,
|
||||||
|
* keeping the old environment around.
|
||||||
*/
|
*/
|
||||||
setenv("TORTURE_SFTP_SERVER", "internal-sftp", 1);
|
setenv("TORTURE_SFTP_SERVER", "internal-sftp", 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user