1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

24 Commits

Author SHA1 Message Date
Volker Lendecke
b148cde7f3 r19914: The "default" value with the name "" need different 0-length treatment as the
other StringBufs, otherwise clicking on a key with this value being set leads
to regedit.exe on w2k3 chew all memory.
2007-10-10 12:16:09 -05:00
Volker Lendecke
01a53590a6 r19912: Move the subkey cache to srv_winreg_nt.c 2007-10-10 12:16:08 -05:00
Volker Lendecke
81bd816fa2 r19872: Move the value cache to srv_winreg_nt.c. Fix some minor issues found while
playing with regedit.exe.

Volker
2007-10-10 12:16:03 -05:00
Volker Lendecke
0ed3a21fcc r19867: Introduce struct regkey_info in srv_winreg_nt.c to be able to re-add the
QueryValue and later the QueryKey cache independent of the backend.

Volker
2007-10-10 12:16:03 -05:00
Volker Lendecke
c8c81f0e86 r19860: Streamline _winreg_QueryValue a bit. We've been pushing around memory
considerably here.

This temporarily removes a cache for the tdb based registry, I'll re-add that
in srv_winreg_nt.c in the next step.

This fixes creating/renaming values from the windows regedit.exe, as "New
Value #1" was not entering the cache after being created.

Volker
2007-10-10 12:16:03 -05:00
Volker Lendecke
cd14b7f052 r19824: Fix the max value calculation in QueryInfoKey 2007-10-10 12:16:00 -05:00
Volker Lendecke
c1083216c8 r19819: Windows returns an empty string instead of NULL here 2007-10-10 12:15:59 -05:00
Volker Lendecke
8df6544fa8 r19803: Fix problem reported by Chetan S: QueryInfoKey needs to report the max name
length in *bytes* for UTF-16, not the string length. This got lost during the
conversion.

This took a while to figure out :-)

Thanks to Chetan!

Volker
2007-10-10 12:15:56 -05:00
Volker Lendecke
f808182346 r19780: Ok, regkey_open_internal needs a regkey_close_internal. Giving a talloc ctx is
misleading here. This needs fixing properly :-)

Volker
2007-10-10 12:15:55 -05:00
Volker Lendecke
cb7f4211b8 r19778: Make regkey_open_internal take a talloc ctx 2007-10-10 12:15:55 -05:00
Volker Lendecke
287d68daab r19689: Fix a NULL dereference found by coverity (the call to strlen).
Jerry, please check this. The way I understood alpha_strcpy the last arg needs
to be the size of the target, not of the source.

Thanks,

Volker
2007-10-10 12:15:47 -05:00
Volker Lendecke
d48ac0726a r19292: Avoid some potential segfaults: In winreg_EnumValue all pointers are unique
pointers and can thus be independently NULL.

Thanks,

Volker
2007-10-10 12:15:29 -05:00
Volker Lendecke
99e54a213a r19224: Add setting the rng_fault_state to the already converted pipes.
Convert the low-hanging fruit of the LSA server. This provides a sample how
the server calls can be converted one by one, see the "proxy_lsa_call"
function.

Volker
2007-10-10 12:15:23 -05:00
Gerald Carter
5381dcbde3 r18962: * Add IDL for SaveKey() and RestoreKey() and regenerated
* Tested RegSaveKey() using win32 app.  Apparently
  this code has been brokne for a really long time.
2007-10-10 12:14:51 -05:00
Gerald Carter
6e9e9f8fac r18954: Fix segv in QueryValue and Enumvalue. regedit.exe now
is happy again when creating keys and values
2007-10-10 12:14:50 -05:00
Gerald Carter
e7e3e35c1d r18940: Fix a few memory corruption bugs to make CreateKey() and DeleteKey() work 2007-10-10 12:14:49 -05:00
Gerald Carter
92f22f67ed r18934: fix a segv in CreateKey() 2007-10-10 12:14:48 -05:00
Gerald Carter
e11108024a r18932: In RegEnumvalue() and RegQueryValue(), the output buffer
size must match the real value of the data.
2007-10-10 12:14:48 -05:00
Gerald Carter
f520a9d0fb r18931: * Fix the IDL for QueryInfoKey. teh Classname in an
in,out ref pointer
* Clarify variable names in EnumValue IDL
* Fix server code for _winreg_EnumValue() and _winreg_QueryInfoKe()
2007-10-10 12:14:48 -05:00
Gerald Carter
435d7bfc37 r18929: * Clarify QueryValue IDL and regenerate code
* Fix server _winreg_Query_Value() implementation so that
  usrmgr.exe starts now
2007-10-10 12:14:47 -05:00
Gerald Carter
7ead5ac792 r18794: Make ENumKey() work again in the registry server 2007-10-10 12:00:58 -05:00
Gerald Carter
b11558c232 r18792: small fix for server QueryValue code 2007-10-10 12:00:58 -05:00
Gerald Carter
44851d7afa r18790: Correct the IDL (still a bug in pidl) for QueryValue() 2007-10-10 12:00:58 -05:00
Gerald Carter
cf1404a0d7 r18789: Replace the winreg server code with the libndr parsing code.
Many things work (OpenHKLM, etc...) but some still don't.
This shouldn't block anyone so I'm checking it in.
Will probably move to a bzr tree after this for
longer dev cycles between checkins.
2007-10-10 12:00:57 -05:00