]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add creation flags for file open
authorAlan T. DeKok <aland@freeradius.org>
Wed, 22 Nov 2023 18:21:42 +0000 (13:21 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 22 Nov 2023 18:21:42 +0000 (13:21 -0500)
src/lib/unlang/xlat_builtin.c

index 07b0445d5b875dabd80f8d06d84cf8b0324c788a..33b2a2116f00d9f4ac9c52a639c8fad0fe3cc1c9 100644 (file)
@@ -1209,7 +1209,7 @@ static xlat_action_t xlat_func_log_dst(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor
         */
        dbg->dst = L_DST_FILES;
        dbg->file = talloc_strdup(dbg, file->vb_strvalue);
-       dbg->fd = open(dbg->file, O_WRONLY | O_CREAT | O_CLOEXEC);
+       dbg->fd = open(dbg->file, O_WRONLY | O_CREAT | O_CLOEXEC, 0600);
        if (!dbg->fd) {
                REDEBUG("Failed opening %s - %s", dbg->file, fr_syserror(errno));
                talloc_free(dbg);