mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
sd-journal: do not require path to be absolute
Seems natural to be able to specify relative directory, e.g. with journalctl -D. And even if, this should be checked in front-end code, not in the library.
This commit is contained in:
parent
763c7aa288
commit
8cb17a6dc8
@ -437,7 +437,7 @@
|
||||
<term><option>-D</option></term>
|
||||
<term><option>--directory=</option></term>
|
||||
|
||||
<listitem><para>Takes an absolute
|
||||
<listitem><para>Takes a
|
||||
directory path as argument. If
|
||||
specified journalctl will operate on the
|
||||
specified journal directory instead of
|
||||
|
@ -1596,7 +1596,7 @@ _public_ int sd_journal_open_directory(sd_journal **ret, const char *path, int f
|
||||
if (!ret)
|
||||
return -EINVAL;
|
||||
|
||||
if (!path || !path_is_absolute(path))
|
||||
if (!path)
|
||||
return -EINVAL;
|
||||
|
||||
if (flags != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user