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
439edcca
Commit
439edcca
authored
May 28, 2010
by
Cody Cutler
Browse files
Accept wildcards for field op_mode
So that we can easily try to enter GPXEBOOTING from any op_mode.
parent
b7be3525
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
439edcca
...
...
@@ -4490,7 +4490,7 @@ COMMAND_PROTOTYPE(dosecurestate)
*/
res
=
mydb_query
(
"select q.pcr,q.value from nodes as n "
"left join tpm_quote_values as q "
"on n.op_mode = q.op_mode "
"on
(
n.op_mode = q.op_mode
or q.op_mode='*')
"
"where n.node_id='%s' and q.state ='%s' "
"order by q.pcr"
,
2
,
reqp
->
nodeid
,
newstate
);
...
...
@@ -4679,7 +4679,7 @@ COMMAND_PROTOTYPE(doquoteprep)
*/
res
=
mydb_query
(
"select q.pcr from nodes as n "
"left join tpm_quote_values as q "
"on n.op_mode = q.op_mode "
"on
(
n.op_mode = q.op_mode
or q.op_mode='*')
"
"where n.node_id='%s' and q.state ='%s' "
"order by q.pcr"
,
1
,
reqp
->
nodeid
,
newstate
);
...
...
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