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:
parent
a75371c282
commit
7cd144e7d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue