summaryrefslogtreecommitdiff
path: root/source3/libgpo/gpext/security.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-20 23:38:11 +0200
committerGünther Deschner <gd@samba.org>2009-04-20 23:38:11 +0200
commit6fc40ce0d3b1bdfe9a138db4953896f47094424e (patch)
treee991bd6772ac724a85d71a7117eac7000f1171b8 /source3/libgpo/gpext/security.c
parent7010365e9ac5f9a285b5ad7b660a3c49ff0e8c17 (diff)
downloadsamba-6fc40ce0d3b1bdfe9a138db4953896f47094424e.tar.gz
samba-6fc40ce0d3b1bdfe9a138db4953896f47094424e.tar.bz2
samba-6fc40ce0d3b1bdfe9a138db4953896f47094424e.zip
libgpo: fix the build of gpext plugins.
Guenther
Diffstat (limited to 'source3/libgpo/gpext/security.c')
-rw-r--r--source3/libgpo/gpext/security.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libgpo/gpext/security.c b/source3/libgpo/gpext/security.c
index 8adeb59ead..f0a52fda5d 100644
--- a/source3/libgpo/gpext/security.c
+++ b/source3/libgpo/gpext/security.c
@@ -59,9 +59,9 @@ struct gpttmpl_table {
static NTSTATUS gpttmpl_parse_header(struct gp_inifile_context *ini_ctx,
uint32_t *version_out)
{
- const char *signature = NULL;
+ char *signature = NULL;
NTSTATUS result;
- uint32_t version;
+ int version;
int is_unicode;
if (!ini_ctx) {
@@ -79,7 +79,7 @@ static NTSTATUS gpttmpl_parse_header(struct gp_inifile_context *ini_ctx,
}
result = gp_inifile_getint(ini_ctx, GPTTMPL_SECTION_VERSION
":"GPTTMPL_PARAMETER_REVISION, &version);
- if (!NT_STATUS_IS_OK(result))
+ if (!NT_STATUS_IS_OK(result)) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
@@ -88,7 +88,7 @@ static NTSTATUS gpttmpl_parse_header(struct gp_inifile_context *ini_ctx,
}
result = gp_inifile_getint(ini_ctx, GPTTMPL_SECTION_UNICODE
- ":"GPTTMPL_PARAMETER_UNICODE, is_unicode);
+ ":"GPTTMPL_PARAMETER_UNICODE, &is_unicode);
if (!NT_STATUS_IS_OK(result) || !is_unicode) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
@@ -157,7 +157,7 @@ static NTSTATUS security_process_group_policy(ADS_STRUCT *ads,
/* this handler processes the gpttmpl files and merge output to the
* registry */
- 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);
if (!NT_STATUS_IS_OK(status)) {
goto out;
}