diff --git a/lib/metasploit/framework/database.rb b/lib/metasploit/framework/database.rb index 34f958af1c..4b701c334b 100644 --- a/lib/metasploit/framework/database.rb +++ b/lib/metasploit/framework/database.rb @@ -96,7 +96,7 @@ module Metasploit # @return [Pathname] if the user has a `database.yml` in their config directory (`~/.msf4` by default). # @return [nil] if the user does not have a `database.yml` in their config directory. def self.user_configurations_pathname - Pathname.new(Msf::Config.get_config_root).realpath.join('database.yml') + Pathname.new(Msf::Config.get_config_root).join('database.yml') end end end