X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fsamba-autobuild%2F.git;a=blobdiff_plain;f=source3%2Flibgpo%2Fgpext%2Fregistry.c;h=d7018556d85f1cd2ed7f983d08ca9392e4e27d57;hp=f50149840726b61524ad01371c6186e53fc79588;hb=3d5972c43f536b94122100e1e30f92a4f8441768;hpb=5209a846a9157e649fcdcb561f7eaf19c8c0e465 diff --git a/source3/libgpo/gpext/registry.c b/source3/libgpo/gpext/registry.c index f5014984072..d7018556d85 100644 --- a/source3/libgpo/gpext/registry.c +++ b/source3/libgpo/gpext/registry.c @@ -18,6 +18,9 @@ */ #include "includes.h" +#include "../libgpo/gpo_ini.h" +#include "../libgpo/gpo.h" +#include "libgpo/gpo_proto.h" #define GP_EXT_NAME "registry" @@ -502,7 +505,7 @@ static WERROR reg_apply_registry(TALLOC_CTX *mem_ctx, token, flags); if (!W_ERROR_IS_OK(werr)) { DEBUG(0,("failed to apply registry: %s\n", - dos_errstr(werr))); + win_errstr(werr))); goto done; } } @@ -534,7 +537,7 @@ static NTSTATUS registry_process_group_policy(ADS_STRUCT *ads, debug_gpext_header(0, "registry_process_group_policy", flags, gpo, extension_guid, snapin_guid); - status = gpo_get_unix_path(mem_ctx, gpo, &unix_path); + status = gpo_get_unix_path(mem_ctx, cache_path(GPO_CACHE_DIR), gpo, &unix_path); NT_STATUS_NOT_OK_RETURN(status); status = reg_parse_registry(mem_ctx, @@ -554,7 +557,7 @@ static NTSTATUS registry_process_group_policy(ADS_STRUCT *ads, entries, num_entries); if (!W_ERROR_IS_OK(werr)) { DEBUG(0,("failed to apply registry: %s\n", - dos_errstr(werr))); + win_errstr(werr))); return werror_to_ntstatus(werr); }