summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-19 02:35:17 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-19 02:35:17 +0200
commit6f5878a286c34739d8d6759de5f5a77e56daeb61 (patch)
tree36a8fd91b254d905906d122b927533a693ea71ef /src/journal
parent31f92a7df427593532d221dd715e2e0a5b6f3a96 (diff)
journal: follow symlinks when enumerating journals
Diffstat (limited to 'src/journal')
-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 c3f19ca697..4c19fc0ed1 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -1329,7 +1329,7 @@ static int add_root_directory(sd_journal *j, const char *p) {
if (r < 0)
log_debug("Failed to add file %s/%s: %s", m->path, de->d_name, strerror(-r));
- } else if ((de->d_type == DT_DIR || de->d_type == DT_UNKNOWN) &&
+ } else if ((de->d_type == DT_DIR || de->d_type == DT_LNK || de->d_type == DT_UNKNOWN) &&
sd_id128_from_string(de->d_name, &id) >= 0) {
r = add_directory(j, m->path, de->d_name);