fix the logic so root can run msfupdate even if the install is owned by a user

git-svn-id: file:///home/svn/framework3/trunk@13862 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
David Rude 2011-10-10 21:20:56 +00:00
parent a75371c282
commit 7cd144e7d6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ $stderr.puts "[*] Attempting to update the Metasploit Framework..."
$stderr.puts "[*]"
$stderr.puts ""
if not ::File.stat(msfbase).owned?
if not (Process.uid == 0 or File.stat(msfbase).owned?)
$stderr.puts "[-] ERROR: User running msfupdate does not own the metasploit install"
$stderr.puts "Please run msfupdate as the same user who installed metasploit."
end