From bdef9a6b4628a44c10c7bd48ecda80305871a71d Mon Sep 17 00:00:00 2001 From: Christophe De La Fuente Date: Wed, 19 Nov 2025 18:50:26 +0100 Subject: [PATCH] Fix msfdb startup --- msfdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msfdb b/msfdb index 6649fd250c..44ade4403b 100755 --- a/msfdb +++ b/msfdb @@ -1005,7 +1005,7 @@ def should_delete ask_yn("Would you like to delete your existing data and configurations?") end -if $PROGRAM_NAME == __FILE__ +if File.expand_path($PROGRAM_NAME) == File.expand_path(__FILE__) # Bomb out if we're root if !Gem.win_platform? && Process.uid.zero? puts "Please run #{@script_name} as a non-root user"