chiark / gitweb /
journal: when iterating through a file we might lose messages when changing direction.
authorMarius Vollmer <marius.vollmer@redhat.com>
Thu, 18 Apr 2013 20:34:36 +0000 (22:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Apr 2013 20:34:36 +0000 (22:34 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=63672

TODO
src/journal/sd-journal.c

diff --git a/TODO b/TODO
index 1221b39cd419325010e331d66068c1fd44039816..cd66914b5c6da29db002723e4eb7487f1070b35c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -32,6 +32,8 @@ Fedora 19:
 
 Features:
 
+* truncate whitespace of var names the same way as values in parse_env_file_internal()
+
 * dbus: when a unit failed to load (i.e. is in UNIT_ERROR state), we
   should be able to safely try another attempt when the bus call LoadUnit() is invoked.
 
index 88af68c1f1a2c73d26d3856db786d7d9e96d9419..e021d98155e50cacf41bbc6640072e26c557f93c 100644 (file)
@@ -109,6 +109,9 @@ static void set_location(sd_journal *j, LocationType type, JournalFile *f, Objec
 
         init_location(&j->current_location, type, f, o);
 
+        if (j->current_file)
+                j->current_file->current_offset = 0;
+
         j->current_file = f;
         j->current_field = 0;