From e2a5cb0ebe9d0fd2b2debf3aedda57e5c64a5554 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Fri, 11 Dec 2009 18:54:19 +0000 Subject: [PATCH] Pass the password argument in db_create git-svn-id: file:///home/svn/framework3/trunk@7823 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/console/command_dispatcher/db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/ui/console/command_dispatcher/db.rb b/lib/msf/ui/console/command_dispatcher/db.rb index f82dcdb08d..6b3bd880f1 100644 --- a/lib/msf/ui/console/command_dispatcher/db.rb +++ b/lib/msf/ui/console/command_dispatcher/db.rb @@ -1431,7 +1431,7 @@ class Db system("dropdb #{cargs} #{info[:name]} >/dev/null 2>&1") system("createdb #{cargs} #{info[:name]}") - opts['pass'] ||= '' + opts['password'] = info[:pass] || '' # Do a little legwork to find the real database socket if(! opts['host'])