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.
parent 763c7aa2
......@@ -437,7 +437,7 @@
<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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment