From 83b6f268b46d076129a8cbc23f8aa176dcf17bcd Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 27 Aug 2014 16:58:05 -0500 Subject: [PATCH] Remove unnecessary realpath MSP-11153 Causes errors on machines that don't have ~/.msf4 like travis-ci. --- lib/metasploit/framework/database.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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