chiark / gitweb /
journalctl: unlink without checking with access first
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 Mar 2015 22:58:47 +0000 (18:58 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Mar 2015 02:06:46 +0000 (22:06 -0400)
commitfaf9da01ad93bd48523f0966646bbd3ca85a2951
tree1cee8ffb941c22c54c4b1c70bb5e2cb6ef3a80d4
parent977eaa1eae53af7f418d87fcb42f4a4d34aad739
journalctl: unlink without checking with access first

It is more elegant to do this in one step.

Coverity complains about the TOCTOU difference, but it is not an
actual problem (CID #1237777).
src/journal/journalctl.c