Displaying 2 results from an estimated 2 matches for "find_protocol".
2008 Sep 10
2
Bug#490409: xen-3: diff for NMU version 3.2.1-2.1
....com>
+xen-unstable changeset: 17606:e3be00bd6aa963aca563692c271af762f9380ba0
+xen-unstable date: Mon May 12 10:09:12 2008 +0100
+
+--- a/tools/ioemu/block.c Tue May 13 15:16:59 2008 +0100
++++ b/tools/ioemu/block.c Tue May 13 15:19:47 2008 +0100
+@@ -250,7 +250,7 @@ static BlockDriver *find_protocol(const
+ #endif
+ p = strchr(filename, ':');
+ if (!p)
+- return &bdrv_raw;
++ return NULL; /* do not ever guess raw, it is a security problem! */
+ len = p - filename;
+ if (len > sizeof(protocol) - 1)
+ len = sizeof(protocol) - 1;
+--- a/tools/...
2008 Dec 09
3
Problems with getting correct id from query involving two tables
I have a query that is intended to find all "transfers" based on a
condition the uses a second table. In the controller, it looks like
this:
def find_protocols
@transfers = Transfer.find(:all, :from => "transfers,
protocols", :conditions => "transfers.protocol_id = protocols.id AND
protocols.name = \"#{params[:protocol]}\"")
respond_to do |format|
format.html # index.html.erb
format.xml { render :x...