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
e7f73e81
Commit
e7f73e81
authored
Aug 18, 2017
by
Mike Hibler
Browse files
Fix a query we have almost certainly never made.
We were not returning the correct number of values.
parent
272cc305
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/os/frisbee.redux/config_emulab.c
View file @
e7f73e81
...
...
@@ -1706,7 +1706,7 @@ emulab_get_host_authinfo(struct in_addr *req, struct in_addr *host,
}
else
{
/* Find all images that this pid/gid can PUT */
res
=
mydb_query
(
"SELECT i.pid,i.gid,i.imagename,"
"v.path,i.imageid,v.version"
"v.path,i.imageid,v.version
,NULL
"
" FROM images as i"
" LEFT JOIN image_versions as v on "
" v.imageid=i.imageid and "
...
...
@@ -1715,7 +1715,7 @@ emulab_get_host_authinfo(struct in_addr *req, struct in_addr *host,
" AND (i.gid='%s' OR"
" (i.gid=i.pid AND v.shared=1))"
" ORDER BY i.pid,i.gid,i.imagename"
,
6
,
ei
->
pid
,
ei
->
gid
);
7
,
ei
->
pid
,
ei
->
gid
);
}
assert
(
res
!=
NULL
);
...
...
Write
Preview
Supports
Markdown
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