Skip to content
GitLab
Menu
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
f0b88b9e
Commit
f0b88b9e
authored
May 24, 2010
by
Robert P Ricci
Browse files
Small bugfixes
parent
0a062818
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
f0b88b9e
...
...
@@ -114,6 +114,10 @@ CHECKMASK(char *arg)
#define HOSTID_SIZE (32+64)
#define DEFAULT_DBNAME TBDBNAME
/* For secure disk loading */
#define SECURELOAD_OPMODE "SECURELOAD"
#define SECURELOAD_STATE "RELOADSETUP"
int debug = 0;
static int verbose = 0;
static int insecure = 0;
...
...
@@ -4774,7 +4778,7 @@ COMMAND_PROTOTYPE(doimagekey) {
* probably not a good idea, but the right way to get it isn't clear
*/
res = mydb_query("select op_mode, eventstate from nodes where "
"node_id='%s'"
,
1
,
req
u
p
->
nodeid
);
"node_id='%s'",1,reqp->nodeid);
if (!res) {
error("IMAGEKEY: %s: DB Error getting event state\n",
...
...
@@ -4798,7 +4802,7 @@ COMMAND_PROTOTYPE(doimagekey) {
}
if (strncmp(row[0],SECURELOAD_OPMODE,nlen[0]) ||
strncmp
(
row
[
1
],
SECURELOAD_
MOD
E
,
nlen
[
1
]))
{
strncmp(row[1],SECURELOAD_
STAT
E,nlen[1])) {
error("IMAGEKEY: %s: Node is in the wrong state\n",
reqp->nodeid);
mysql_free_result(res);
...
...
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