Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
f44d3d18
Commit
f44d3d18
authored
Jun 28, 2013
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ug, loadinfo ADDR is a URL which can have = signs. Adjust parsing.
parent
cbfa24fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
clientside/tmcc/common/libsetup.pm
clientside/tmcc/common/libsetup.pm
+11
-1
No files found.
clientside/tmcc/common/libsetup.pm
View file @
f44d3d18
...
...
@@ -2162,7 +2162,17 @@ sub getloadinfo($)
foreach
my
$kv
(
@kvs
)
{
my
@kvpair
=
split
(
/=/
,
$kv
);
if
(
scalar
(
@kvpair
)
!=
2
)
{
warn
("
*** WARNING: malformed key-val pair in loadinfo:
$kv
\n
");
#
# Ick. ADDR is a URL.
#
if
(
$kvpair
[
0
]
eq
"
ADDR
")
{
my
$key
=
shift
(
@kvpair
);
$resh
{
$key
}
=
join
("
=
",
@kvpair
);
}
else
{
warn
("
*** WARNING:
"
.
"
malformed key-val pair in loadinfo:
$kv
\n
");
}
}
else
{
$resh
{
$kvpair
[
0
]}
=
$kvpair
[
1
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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