Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: containers/conmon
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ec5b4af5b80cdf5d1cb51104815bd76af579b916
Choose a base ref
..
head repository: containers/conmon
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c15c112603a78a05acf5053cc9fe8e12401b0f0a
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ctr_logging.c
4 changes: 2 additions & 2 deletions src/ctr_logging.c
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ void configure_log_drivers(gchar **log_drivers, int64_t log_size_max_, int64_t l
}
if (use_k8s_logging) {
/* Open the log path file. */
k8s_log_fd = open(k8s_log_path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, 0600);
k8s_log_fd = open(k8s_log_path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, 0640);
if (k8s_log_fd < 0)
pexit("Failed to open log file");

@@ -613,7 +613,7 @@ static void reopen_k8s_file(void)
k8s_bytes_written = 0;

/* Open the log path file again */
k8s_log_fd = open(k8s_log_path_tmp, O_WRONLY | O_TRUNC | O_CREAT | O_CLOEXEC, 0600);
k8s_log_fd = open(k8s_log_path_tmp, O_WRONLY | O_TRUNC | O_CREAT | O_CLOEXEC, 0640);
if (k8s_log_fd < 0)
pexitf("Failed to open log file %s", k8s_log_path);