Systemd/src/journal-remote
Lennart Poettering 544e146b0e journalctl,elsewhere: make sure --file=foo fails with sane error msg if foo is not readable
It annoyed me for quite a while that running "journalctl --file=…" on a
file that is not readable failed with a "File not found" error instead
of a permission error. Let's fix that.

We make this work by using the GLOB_NOCHECK flag for glob() which means
that files are not accessible will be returned in the array as they are
instead of being filtered away. This then means that our later attemps
to open the files will fail cleanly with a good error message.
2020-05-19 15:26:51 +02:00
..
browse.html fix(journal-gatewayd): use relative urls (not starting with '/') 2019-06-18 17:06:12 +02:00
journal-gatewayd.c *: use _cleanup_close_ with fdopen() where trivial 2020-03-31 06:48:03 -07:00
journal-remote-main.c journal-remote: fix description of option 2020-03-31 22:19:22 +02:00
journal-remote-parse.c journal-import: extract helpers for handling arrays of iovec and make them available for others 2019-06-27 19:14:23 +02:00
journal-remote-parse.h Drop my copyright headers 2018-06-14 13:03:20 +02:00
journal-remote-write.c journal-remote: use source's boot-id 2019-04-02 10:32:21 +02:00
journal-remote-write.h journal-remote: use source's boot-id 2019-04-02 10:32:21 +02:00
journal-remote.c tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
journal-remote.conf.in journal-remote: add license and reference to man page in conf files 2018-06-26 04:04:45 +09:00
journal-remote.h journal-remote: destroy RemoteServer object by using _cleanup_ attribute 2018-12-08 18:09:40 +09:00
journal-upload-journal.c journal: fix dropping first record during upload to remote journal 2020-05-19 07:58:59 +02:00
journal-upload.c journalctl,elsewhere: make sure --file=foo fails with sane error msg if foo is not readable 2020-05-19 15:26:51 +02:00
journal-upload.conf.in journal-remote: add license and reference to man page in conf files 2018-06-26 04:04:45 +09:00
journal-upload.h tree-wide: normalize includes of public headers 2019-11-28 09:14:22 +01:00
log-generator.py log-generator: make message size configurable, add short options 2018-05-31 13:04:18 +02:00
meson.build meson: create /var/log/journal/{,remote/} conditionally 2019-07-04 10:16:48 +02:00
microhttpd-util.c tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
microhttpd-util.h codespell: fix spelling errors 2019-04-29 16:47:18 +02:00