svn commit: samba r16488 - in trunk/source/utils: .
vlendec at samba.org
vlendec at samba.org
Fri Jun 23 21:01:13 GMT 2006
Author: vlendec
Date: 2006-06-23 21:01:13 +0000 (Fri, 23 Jun 2006)
New Revision: 16488
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16488
Log:
Taking the quote serious :-)
net rpc registry enumerate HKLM
needs to even open an empty top level key....
Volker
Modified:
trunk/source/utils/net_rpc_registry.c
Changeset:
Modified: trunk/source/utils/net_rpc_registry.c
===================================================================
--- trunk/source/utils/net_rpc_registry.c 2006-06-23 16:02:03 UTC (rev 16487)
+++ trunk/source/utils/net_rpc_registry.c 2006-06-23 21:01:13 UTC (rev 16488)
@@ -117,12 +117,11 @@
return werror_to_ntstatus(result);
}
- if ( strlen( subpath ) != 0 ) {
- result = rpccli_reg_open_entry(pipe_hnd, mem_ctx, &pol_hive, subpath, MAXIMUM_ALLOWED_ACCESS, &pol_key );
- if ( !W_ERROR_IS_OK(result) ) {
- d_fprintf(stderr, "Unable to open [%s]\n", argv[0]);
- return werror_to_ntstatus(result);
- }
+ result = rpccli_reg_open_entry(pipe_hnd, mem_ctx, &pol_hive, subpath,
+ MAXIMUM_ALLOWED_ACCESS, &pol_key );
+ if ( !W_ERROR_IS_OK(result) ) {
+ d_fprintf(stderr, "Unable to open [%s]\n", argv[0]);
+ return werror_to_ntstatus(result);
}
/* get the subkeys */
More information about the samba-cvs
mailing list