1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-24 19:37:48 +03: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:
Jakub Jelen
2024-08-12 13:49:31 +02:00
parent 57073d588a
commit deedc0e108

View File

@@ -16,9 +16,10 @@ static int
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.
* The OpenSSH invokes the sftp server command with execve(), which does
* not inherit the environment variables (including LD_PRELOAD, which
* is needed for the fs_wrapper). Using `internal-sftp` works around this,
* keeping the old environment around.
*/
setenv("TORTURE_SFTP_SERVER", "internal-sftp", 1);