From: Arran Cudbard-Bell Date: Sat, 22 Oct 2022 07:34:52 +0000 (-0400) Subject: Pass mode when creating output files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da9fa753ab53862d1c9d1d29a969247e7ac1489;p=thirdparty%2Ffreeradius-server.git Pass mode when creating output files --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 0ee98b03a06..1b6a2bbcfe4 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -2779,7 +2779,7 @@ static size_t command_write(command_result_t *result, command_file_ctx_t *cc, path = talloc_bstrndup(cc->tmp_ctx, in, inlen); - fd = open(path, O_CREAT | O_WRONLY); + fd = open(path, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (fd < 0) { fr_strerror_printf("Failed opening \"%s\": %s", path, fr_syserror(errno)); error: