1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +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:
Zbigniew Jędrzejewski-Szmek 2012-11-04 16:19:04 +01:00
parent 763c7aa288
commit 8cb17a6dc8
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)