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
c320c151
Commit
c320c151
authored
Apr 15, 2011
by
David Johnson
Browse files
Bug fix: get bossip via tmccbossinfo so we don't fetch blobs from subboss!
parent
e8a7fa5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/common/libtmcc.pm
View file @
c320c151
...
...
@@ -665,8 +665,6 @@ sub tmccgetconfig()
#
package
libtmcc::
blob
;
my
$SERVERFILE
=
"
$VARDIR
/boot/bossip
";
# tmcc.c jumps through hoops to get it... do we have to, too?
my
$NICKNAMEFILE
=
"
$BOOTDIR
/nickname
";
my
$KEYHASHFILE
=
"
$BOOTDIR
/keyhash
";
...
...
@@ -838,10 +836,7 @@ sub getblob($$;\@$) {
$struct
{'
key
'}
=
$key
;
close
KEYHASH
;
open
BOSSIP
,
$SERVERFILE
or
die
"
$SERVERFILE
: $!
";
<
BOSSIP
>
=~
/^(\d+\.\d+\.\d+\.\d++)$/
;
$struct
{'
server
'}
=
$
1
;
close
BOSSIP
;
(
undef
,
$struct
{'
server
'})
=
libtmcc::
tmccbossinfo
();
if
(
$debug
)
{
$,
=
"
";
...
...
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