Fix mode_t in mkdir.
authorWilco Baan Hofman <wilco@baanhofman.nl>
Wed, 5 May 2010 08:12:20 +0000 (10:12 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 20 Jun 2010 15:19:11 +0000 (17:19 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/policy/gp_filesys.c

index 03d746861f632b4c31b2a93fed5fc9c349cd48e1..771ba5e072b065ec5cef83720d47210594eb2556 100644 (file)
@@ -224,7 +224,7 @@ NTSTATUS gp_fetch_gpo (struct gp_context *gp_ctx, struct gp_object *gpo, const c
 
        /* Create the GPO dir if it does not exist */
        if (stat(state->local_path, &st) != 0) {
-               rv = mkdir(state->local_path, 755);
+               rv = mkdir(state->local_path, 0755);
                if (rv < 0) {
                        DEBUG(0, ("Could not create local path\n"));
                        talloc_free(mem_ctx);