summaryrefslogtreecommitdiff
path: root/src/journal/sd-journal.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-04 16:19:04 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-18 19:49:33 -0400
commit8cb17a6dc88cecfcee3189765031e9e8a1f4106b (patch)
treeb8c8782aae75e24f463ceaee86d048cce4a7cd39 /src/journal/sd-journal.c
parent763c7aa288485cf5ab627fe1d25ff58e76f9dacb (diff)
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.
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r--src/journal/sd-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 7ffbaf7cbf..ef4b9b2242 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -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)