forked from pool/systemd
3856bb52b7
(please also push to 13.1, I want the same version as F20) - Add 0001-gpt-auto-generator-exit-immediately-if-in-container.patch: don't start gpt auto-generator in container (git). - Add 0001-manager-when-verifying-whether-clients-may-change-en.patch: fix reload check in selinux case (git). - Add 0001-logind-fix-bus-introspection-data-for-TakeControl.patch: fix introspection for TakeControl (git). - Add 0001-mount-check-for-NULL-before-reading-pm-what.patch: fix crash when parsing some incorrect unit (git). - Add 0001-shared-util-fix-off-by-one-error-in-tag_to_udev_node.patch: Fix udev rules parsing (git). - Add 0001-systemd-serialize-deserialize-forbid_restart-value.patch: Fix incorrect deserialization for forbid_restart (git). - Add 0001-core-unify-the-way-we-denote-serialization-attribute.patch: Ensure forbid_restart is named like other attributes (git). - Add 0001-journald-fix-minor-memory-leak.patch: fix memleak in journald (git). - Add 0001-do-not-accept-garbage-from-acpi-firmware-performance.patch: Improve ACPI firmware performance parsing (git). - Add 0001-journald-remove-rotated-file-from-hashmap-when-rotat.patch: Fix journal rotation (git). - Add 0001-login-fix-invalid-free-in-sd_session_get_vt.patch: Fix memory corruption in sd_session_get_vt (git). OBS-URL: https://build.opensuse.org/request/show/203387 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=454
28 lines
840 B
Diff
28 lines
840 B
Diff
From 0581dac2c146cef0f55841a4c136dc48409c8eaa Mon Sep 17 00:00:00 2001
|
|
From: David Herrmann <dh.herrmann@gmail.com>
|
|
Date: Thu, 10 Oct 2013 13:11:27 +0200
|
|
Subject: [PATCH] login: make sd_session_get_vt() actually work
|
|
|
|
We use VTNR, not VTNr as key. Until now sd_session_get_vt() just returns
|
|
an error.
|
|
---
|
|
src/login/sd-login.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/login/sd-login.c b/src/login/sd-login.c
|
|
index 6c27dfe..7e25041 100644
|
|
--- a/src/login/sd-login.c
|
|
+++ b/src/login/sd-login.c
|
|
@@ -354,7 +354,7 @@ _public_ int sd_session_get_vt(const char *session, unsigned *vtnr) {
|
|
unsigned u;
|
|
int r;
|
|
|
|
- r = session_get_string(session, "VTNr", &vtnr_string);
|
|
+ r = session_get_string(session, "VTNR", &vtnr_string);
|
|
if (r < 0)
|
|
return r;
|
|
|
|
--
|
|
1.8.4
|
|
|