simple patch to get all privileges after a successful getsystem

git-svn-id: file:///home/svn/framework3/trunk@8321 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Stephen Fewer 2010-01-29 11:04:24 +00:00
parent fc6eca57ec
commit 47b08fa6ef
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ class Priv < Extension
technique = response.get_tlv_value( TLV_TYPE_ELEVATE_TECHNIQUE )
if( response.result == 0 and technique != nil )
client.core.use( "stdapi" ) if not client.ext.aliases.include?( "stdapi" )
client.sys.config.getprivs
return [ true, technique ]
end