File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
ui/console/command_dispatcher/stdapi Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,7 @@ def getprivs
170
170
ret = [ ]
171
171
res = client . send_request ( req )
172
172
res . each ( TLV_TYPE_PRIVILEGE ) do |p |
173
- ret << {
174
- priv : p . get_tlv_value ( TLV_TYPE_PRIVILEGE_NAME ) ,
175
- enabled : p . get_tlv_value ( TLV_TYPE_PRIVILEGE_ENABLED ) ,
176
- }
173
+ ret << p . value
177
174
end
178
175
ret
179
176
end
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ module Stdapi
16
16
TLV_TYPE_INHERIT = TLV_META_TYPE_BOOL | 601
17
17
TLV_TYPE_PROCESS_HANDLE = TLV_META_TYPE_QWORD | 630
18
18
TLV_TYPE_THREAD_HANDLE = TLV_META_TYPE_QWORD | 631
19
- TLV_TYPE_PRIVILEGE = TLV_META_TYPE_GROUP | 632
20
- TLV_TYPE_PRIVILEGE_NAME = TLV_META_TYPE_STRING | 633
21
- TLV_TYPE_PRIVILEGE_ENABLED = TLV_META_TYPE_BOOL | 634
19
+ TLV_TYPE_PRIVILEGE = TLV_META_TYPE_STRING | 632
22
20
23
21
##
24
22
#
Original file line number Diff line number Diff line change @@ -899,12 +899,12 @@ def cmd_getprivs(*args)
899
899
'Header' => 'Enabled Process Privileges' ,
900
900
'Indent' => 0 ,
901
901
'SortIndex' => 1 ,
902
- 'Columns' => [ 'Priv Name' , 'Enabled ']
902
+ 'Columns' => [ 'Name' ]
903
903
)
904
904
905
905
privs = client . sys . config . getprivs
906
906
client . sys . config . getprivs . each do |priv |
907
- table << [ priv [ :priv ] , priv [ :enabled ] . to_s ]
907
+ table << [ priv ]
908
908
end
909
909
910
910
print_line
You can’t perform that action at this time.
0 commit comments