forked from pool/systemd
16ef4de12e
- Fix creation of /dev/root link. - Add remount-ro-before-unmount.patch: always remount read-only before unmounting in final shutdown loop. - Add switch-root-try-pivot-root.patch: try pivot_root before overmounting / - links more manpages for migrated tools (from Christopher Yeleighton). - disable boot.localnet service, ypbind service will do the right thing now (bnc#716746) - add xdm-display-manager.patch: pull xdm.service instead of display-manager.service (needed until xdm initscript is migrated to native systemd service). - Add fix-permissions-btmp.patch: ensure btmp is owned only by root (bnc#777405). - Have the udev package create a tape group, as referenced by 50-udev-default.rules and 60-persistent-storage-tape.rules (DimStar). - Add fix-bad-memory-access.patch: fix crash in journal rotation. - Add fix-dbus-crash.patch: fix D-Bus caused crash. - Add sync-on-shutdown.patch: ensure sync is done when initiating shutdown. - Add mount-efivars.patch: mount efivars if booting on UEFI. - Ship a empty systemd-journald initscript in systemd-logger to stop insserv to complain about missing syslog dependency. - Update 0001-service-Fix-dependencies-added-when-parsing-insserv..patch with bug fixes from Debian. OBS-URL: https://build.opensuse.org/request/show/142568 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=115
24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
From 7d73c1343be02a59b17de0cd34375deeb815d89c Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Tue, 20 Nov 2012 00:19:27 +0100
|
|
Subject: [PATCH] journald: fix bad memory access
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=875653
|
|
---
|
|
src/journal/journald-server.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: systemd-195/src/journal/journald.c
|
|
===================================================================
|
|
--- systemd-195.orig/src/journal/journald.c
|
|
+++ systemd-195/src/journal/journald.c
|
|
@@ -342,7 +342,7 @@ static void server_rotate(Server *s) {
|
|
HASHMAP_FOREACH_KEY(f, k, s->user_journals, i) {
|
|
r = journal_file_rotate(&f, s->compress, s->seal);
|
|
if (r < 0)
|
|
- if (f->path)
|
|
+ if (f)
|
|
log_error("Failed to rotate %s: %s", f->path, strerror(-r));
|
|
else
|
|
log_error("Failed to create user journal: %s", strerror(-r));
|