mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-09-26 03:18:54 +02:00
remove unnecessary changes
This commit is contained in:
parent
2771541a41
commit
78cf768fa9
@ -206,8 +206,6 @@ WARNING: Following changes will be made to OpenSSH configuration
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
write-host "user:$user"
|
|
||||||
write-host "passwd:$($Script:OpenSSHTestAccountsPassword)"
|
|
||||||
#only add the local user when it does not exists on the machine
|
#only add the local user when it does not exists on the machine
|
||||||
net user $user $Script:OpenSSHTestAccountsPassword /ADD 2>&1 >> $Script:TestSetupLogFile
|
net user $user $Script:OpenSSHTestAccountsPassword /ADD 2>&1 >> $Script:TestSetupLogFile
|
||||||
}
|
}
|
||||||
@ -591,7 +589,7 @@ function Get-UnitTestDirectory
|
|||||||
param
|
param
|
||||||
(
|
(
|
||||||
[ValidateSet('Debug', 'Release')]
|
[ValidateSet('Debug', 'Release')]
|
||||||
[string]$Configuration = "Debug",
|
[string]$Configuration = "Release",
|
||||||
|
|
||||||
[ValidateSet('x86', 'x64', '')]
|
[ValidateSet('x86', 'x64', '')]
|
||||||
[string]$NativeHostArch = ""
|
[string]$NativeHostArch = ""
|
||||||
|
@ -214,8 +214,6 @@ agent_cleanup_connection(struct agent_connection* con)
|
|||||||
sshagent_con_username = NULL;
|
sshagent_con_username = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef ENABLE_PKCS11
|
#ifdef ENABLE_PKCS11
|
||||||
if (sshagent_client_primary_token)
|
if (sshagent_client_primary_token)
|
||||||
CloseHandle(sshagent_client_primary_token);
|
CloseHandle(sshagent_client_primary_token);
|
||||||
|
@ -1074,10 +1074,7 @@ spawn_child_internal(const char* cmd, char *const argv[], HANDLE in, HANDLE out,
|
|||||||
if (strstr(cmd, "sshd.exe")) {
|
if (strstr(cmd, "sshd.exe")) {
|
||||||
flags |= DETACHED_PROCESS;
|
flags |= DETACHED_PROCESS;
|
||||||
}
|
}
|
||||||
if (strstr(cmd, "ssh-pkcs11-helper.exe")) {
|
if (strstr(cmd, "ssh-pkcs11-helper.exe") || is_bash_test_env()) {
|
||||||
flags |= CREATE_NO_WINDOW;
|
|
||||||
}
|
|
||||||
if (is_bash_test_env()) {
|
|
||||||
flags |= CREATE_NO_WINDOW;
|
flags |= CREATE_NO_WINDOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,12 +15,9 @@ while [ ! -f $OBJ/remote_pid ] && [ $n -gt 0 ]; do
|
|||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "killing ssh_pid:$ssh_pid"
|
|
||||||
kill $ssh_pid
|
kill $ssh_pid
|
||||||
echo "waiting for ssh_pid:$ssh_pid"
|
|
||||||
wait $ssh_pid
|
wait $ssh_pid
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
echo "exit_code:$exit_code"
|
|
||||||
|
|
||||||
if [ $exit_code -eq 0 ]; then
|
if [ $exit_code -eq 0 ]; then
|
||||||
fail "ssh client should fail on signal"
|
fail "ssh client should fail on signal"
|
||||||
|
@ -527,7 +527,6 @@ cat << EOF > $OBJ/sshd_config
|
|||||||
PidFile $PIDFILE
|
PidFile $PIDFILE
|
||||||
AuthorizedKeysFile $OBJ/authorized_keys_%u
|
AuthorizedKeysFile $OBJ/authorized_keys_%u
|
||||||
LogLevel DEBUG3
|
LogLevel DEBUG3
|
||||||
SyslogFacility LOCAL0
|
|
||||||
AcceptEnv _XXX_TEST_*
|
AcceptEnv _XXX_TEST_*
|
||||||
AcceptEnv _XXX_TEST
|
AcceptEnv _XXX_TEST
|
||||||
Subsystem sftp $SFTPSERVER
|
Subsystem sftp $SFTPSERVER
|
||||||
|
@ -1192,12 +1192,9 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell)
|
|||||||
|
|
||||||
if (debug_flag) {
|
if (debug_flag) {
|
||||||
/* dump the environment */
|
/* dump the environment */
|
||||||
debug3("Environment:\n");
|
|
||||||
fprintf(stderr, "Environment:");
|
fprintf(stderr, "Environment:");
|
||||||
for (i = 0; env[i]; i++) {
|
for (i = 0; env[i]; i++)
|
||||||
fprintf(stderr, " %.200s\n", env[i]);
|
fprintf(stderr, " %.200s\n", env[i]);
|
||||||
debug3(" %.200s", env[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return env;
|
return env;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,13 @@
|
|||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#ifdef HAVE_POLL_H
|
||||||
|
#include <poll.h>
|
||||||
|
#else
|
||||||
|
# ifdef HAVE_SYS_POLL_H
|
||||||
|
# include <sys/poll.h>
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
@ -58,13 +64,6 @@
|
|||||||
#include "sftp.h"
|
#include "sftp.h"
|
||||||
#include "sftp-common.h"
|
#include "sftp-common.h"
|
||||||
#include "sftp-client.h"
|
#include "sftp-client.h"
|
||||||
#ifdef HAVE_POLL_H
|
|
||||||
#include <poll.h>
|
|
||||||
#else
|
|
||||||
# ifdef HAVE_SYS_POLL_H
|
|
||||||
# include <sys/poll.h>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
extern volatile sig_atomic_t interrupted;
|
extern volatile sig_atomic_t interrupted;
|
||||||
extern int showprogress;
|
extern int showprogress;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user