Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
d5984161
Commit
d5984161
authored
17 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Temporary change to better debug startup failures
of test suite ssh and socks servers.
parent
8d396478
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/runtests.pl
+3
-0
3 additions, 0 deletions
tests/runtests.pl
tests/sshserver.pl
+12
-0
12 additions, 0 deletions
tests/sshserver.pl
with
15 additions
and
0 deletions
tests/runtests.pl
+
3
−
0
View file @
d5984161
...
...
@@ -1116,6 +1116,9 @@ sub runsocksserver {
# it is NOT alive
logmsg
"
RUN: failed to start the SOCKS server
\n
";
# failed to talk to it properly. Kill the server and return failure
logmsg
"
=== Start of file log/ssh.log
\n
";
displaylogcontent
("
log/ssh.log
");
logmsg
"
=== End of file log/ssh.log
\n
";
logmsg
"
TRACESSH:runsocksserver: calling stopserver with sshpid:
$sshpid
pid2:
$pid2
\n
";
stopserver
("
$sshpid
$pid2
");
$doesntrun
{
$pidfile
}
=
1
;
...
...
This diff is collapsed.
Click to expand it.
tests/sshserver.pl
+
12
−
0
View file @
d5984161
...
...
@@ -13,6 +13,7 @@ use strict;
use
File::
Spec
;
my
$verbose
=
0
;
# set to 1 for debugging
my
$showfiles
=
0
;
my
$port
=
8999
;
# just our default, weird enough
my
$listenaddr
=
"
127.0.0.1
";
# address on which to listen
...
...
@@ -136,12 +137,18 @@ chomp($tmpstr = qx($sshd -V 2>&1 | grep OpenSSH));
if
(
$tmpstr
=~
/OpenSSH[_-](\d+)\.(\d+)(\.(\d+))*/
)
{
(
$ssh_ver_major
,
$ssh_ver_minor
,
$ssh_ver_patch
)
=
(
$
1
,
$
2
,
$
4
);
$ssh_daemon
=
'
OpenSSH
';
if
(
10
*
$ssh_ver_major
+
$ssh_ver_minor
==
36
)
{
$showfiles
=
1
;
}
}
if
(
!
$ssh_daemon
)
{
chomp
(
$tmpstr
=
qx($sshd -V 2>&1 | grep Sun_SSH)
);
if
(
$tmpstr
=~
/Sun[_-]SSH[_-](\d+)\.(\d+)/
)
{
(
$ssh_ver_major
,
$ssh_ver_minor
)
=
(
$
1
,
$
2
);
$ssh_daemon
=
'
SunSSH
';
if
(
10
*
$ssh_ver_major
+
$ssh_ver_minor
==
11
)
{
$showfiles
=
1
;
}
}
}
if
(
$verbose
)
{
...
...
@@ -322,6 +329,11 @@ elsif ($verbose && ($cmdretval >> 8)) {
printf
("
$sshd
exited with %d
\n
",
$cmdretval
>>
8
);
}
if
(
$showfiles
)
{
displayfile
("
log/sshd.log
");
displayfile
("
$conffile
");
}
unlink
$conffile
;
exit
$cmdretval
>>
8
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment