X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fjournalctl.c;h=d406daeae99d6fecca6d3c942d108e424e9da213;hb=73e231abde39f22097df50542c745e01de879836;hp=2d99ade1172fdc33ef4ffb4a6793b24c575c2906;hpb=ea18a4b57e2bb94af7b3ecb7abdaec40e9f485f0;p=elogind.git diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 2d99ade11..d406daeae 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -727,7 +727,7 @@ static int add_matches(sd_journal *j, char **args) { t = strappend("_COMM=", comm); /* Append _EXE only if the interpreter is not a link. - Otherwise it might be outdated often. */ + Otherwise, it might be outdated often. */ if (lstat(interpreter, &st) == 0 && !S_ISLNK(st.st_mode)) { t2 = strappend("_EXE=", interpreter); @@ -1286,7 +1286,7 @@ static int setup_keys(void) { n /= arg_interval; close_nointr_nofail(fd); - fd = mkostemp(k, O_WRONLY|O_CLOEXEC|O_NOCTTY); + fd = mkostemp_safe(k, O_WRONLY|O_CLOEXEC); if (fd < 0) { log_error("Failed to open %s: %m", k); r = -errno;