Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
56f8bdeb
Commit
56f8bdeb
authored
Oct 04, 2004
by
Mike Hibler
Browse files
Fix a problem diagnosed by Tim. Vnodes with no experimental IFs were
botching their sshd setup due to some code I added.
parent
ad3a6c5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/freebsd/jail/mkjail.pl
View file @
56f8bdeb
...
...
@@ -590,8 +590,7 @@ sub mkrootfs($)
if
(
$IP
ne
$hostip
)
{
mysystem
("
echo 'ListenAddress
$IP
' >>
"
.
"
$path
/root/etc/ssh/sshd_config
");
my
@ips
=
split
("
,
",
$jailconfig
{
IPADDRS
});
foreach
my
$ip
(
@ips
)
{
foreach
my
$ip
(
@jailips
)
{
mysystem
("
echo 'ListenAddress
$ip
' >>
"
.
"
$path
/root/etc/ssh/sshd_config
");
}
...
...
@@ -744,8 +743,7 @@ sub restorerootfs($)
if
(
$IP
ne
$hostip
)
{
mysystem
("
echo 'ListenAddress
$IP
' >>
"
.
"
$path
/root/etc/ssh/sshd_config
");
my
@ips
=
split
("
,
",
$jailconfig
{
IPADDRS
});
foreach
my
$ip
(
@ips
)
{
foreach
my
$ip
(
@jailips
)
{
mysystem
("
echo 'ListenAddress
$ip
' >>
"
.
"
$path
/root/etc/ssh/sshd_config
");
}
...
...
@@ -967,9 +965,10 @@ sub getjailconfig($)
return
-
1
;
}
while
(
<
CONFIG
>
)
{
if
(
$_
=~
/^(.*)="(.
+
)"$/
||
if
(
$_
=~
/^(.*)="(.
*
)"$/
||
$_
=~
/^(.*)=(.+)$/
)
{
$jailconfig
{
$
1
}
=
$
2
;
$jailconfig
{
$
1
}
=
$
2
if
(
$
2
ne
"");
}
}
close
(
CONFIG
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment