Incorrect value returned by srv_reg_nt.c:_reg_enum_key
jra at samba.org
Mon Jan 10 20:31:49 GMT 2005
On Fri, Jan 07, 2005 at 08:27:32PM -0500, Marcin Porwit wrote:
> While doing some investigation into EventLog support, I came across a small bug in _reg_enum_key.
> According to MSDN, the proper behavior for when there are no more keys to enumerate is
> ERROR_NO_MORE_ITEMS (0x00000103), while current Samba3 versions return NT_STATUS_NO_MORE_ENTRIES
> (0x8000001A). Getting NT_STATUS_NO_MORE_ENTRIES causes the MMC to drop all the registry keys it has
> gotten up until that point, which is unfortunate, since then nothing shows up under the EventLog entry.
> The proper behavior is described here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regenumkey.asp
I've just converted the SVN code in the winreg pipe to use WERROR
returns instead of NTSSTATUS (as it should). Please SVN checkout the
3.0 branch and try again - this should fix the problem.
More information about the samba-technical