We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b08cc3b commit 7164855Copy full SHA for 7164855
src/flb_utils.c
@@ -2043,7 +2043,7 @@ static int machine_id_read_and_sanitize(char *path,
2043
return 0;
2044
}
2045
2046
-int write_uuid_to_file(char* filename, char* uuid)
+static int write_uuid_to_file(const char* filename, char* uuid)
2047
{
2048
int fd;
2049
size_t uuid_len;
@@ -2053,7 +2053,7 @@ int write_uuid_to_file(char* filename, char* uuid)
2053
2054
2055
/* write uuid to file */
2056
- fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0666);
+ fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0600);
2057
if (fd == -1) {
2058
return FLB_FALSE;
2059
0 commit comments