mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
A little comment for registry key merging facility
This commit is contained in:
parent
3bfa3e83e2
commit
b09af3e9a9
@ -189,10 +189,10 @@ class samba_backend(applier_backend):
|
||||
hive_key = '{}\\{}'.format(entry.keyname, entry.valuename)
|
||||
print('Merging {}'.format(hive_key))
|
||||
|
||||
# FIXME: Here should be entry.type parser in order to correctly
|
||||
# represent data
|
||||
hive.set_value(hive_key, entry.type, entry.data.to_bytes(4, byteorder='big'))
|
||||
|
||||
# Dump data to disk
|
||||
hive.flush()
|
||||
hive.flush() # Dump data to disk
|
||||
|
||||
def get_values(self):
|
||||
'''
|
||||
@ -201,10 +201,13 @@ class samba_backend(applier_backend):
|
||||
# FIXME: Return registry and hives instead of samba.preg objects.
|
||||
preg_objs = []
|
||||
print('Parsing machine regpols')
|
||||
|
||||
for regpol in self.policy_files['machine_regpols']:
|
||||
print('Processing {}'.format(regpol))
|
||||
pregfile = self._parse_pol_file(regpol)
|
||||
preg_objs.append(pregfile)
|
||||
# Works only with full key names
|
||||
#self.registry.diff_apply(regpol)
|
||||
for entry in pregfile.entries:
|
||||
self._merge_entry(self.machine_hive, entry)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user