sd-journal: watch logs below container's /{var,run}/log/journal (instead of the /) (#3934)

Fixes #3927.
This commit is contained in:
Evgeny Vereshchagin
2016-08-09 08:49:32 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent ac741b47dc
commit e73529f9dd
+2
View File
@@ -2290,6 +2290,8 @@ _public_ int sd_journal_get_fd(sd_journal *j) {
* inotify */
if (j->no_new_files)
r = add_current_paths(j);
else if (j->flags & SD_JOURNAL_OS_ROOT)
r = add_search_paths(j);
else if (j->toplevel_fd >= 0)
r = add_root_directory(j, NULL, false);
else if (j->path)