]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-journal: fix a copy-paste error
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 25 Nov 2025 17:40:10 +0000 (18:40 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Nov 2025 23:36:03 +0000 (00:36 +0100)
Dereference the Directory pointer in the debug message instead of the
(probably already freed) JournalFile one.

src/libsystemd/sd-journal/sd-journal.c

index d29d1ad1f71c64cf25edb4c9228602c7cd0d7783..696f336945b377373af4656224bdc1867b7844c3 100644 (file)
@@ -3048,7 +3048,7 @@ static void process_q_overflow(sd_journal *j) {
                 if (m->is_root) /* Never GC root directories */
                         continue;
 
-                log_debug("Directory '%s' hasn't been seen in this enumeration, removing.", f->path);
+                log_debug("Directory '%s' hasn't been seen in this enumeration, removing.", m->path);
                 directory_free(m);
         }