Fix: typo in enable-channel man and help
[lttng-tools.git] / src / common / utils.c
index 9f3a8f942b1176867fc7e0d55253cbae321f6130..54eed80bde14ad83228a090ce45638b0bba6c082 100644 (file)
@@ -309,6 +309,7 @@ error:
  *
  * Return 0 on success or else a negative value.
  */
+LTTNG_HIDDEN
 int utils_create_stream_file(char *path_name, char *file_name, uint64_t size,
                uint64_t count, int uid, int gid)
 {
@@ -340,8 +341,9 @@ int utils_create_stream_file(char *path_name, char *file_name, uint64_t size,
                path = full_path;
        }
 
+       /* Open with 660 mode */
        out_fd = run_as_open(path, O_WRONLY | O_CREAT | O_TRUNC,
-                       S_IRWXU | S_IRWXG | S_IRWXO, uid, gid);
+                       S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, uid, gid);
        if (out_fd < 0) {
                PERROR("open stream path %s", path);
                goto error_open;
@@ -363,6 +365,7 @@ error:
  *
  * Return 0 on success or else a negative value.
  */
+LTTNG_HIDDEN
 int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size,
                uint64_t count, int uid, int gid, int out_fd, uint64_t *new_count)
 {
This page took 0.024513 seconds and 4 git commands to generate.