valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0067-login-make-sd_session_get_vt-actually-work.patch

9fc0f6
From b2301b8a4a17d51ac713fd39484fe48075ad2f64 Mon Sep 17 00:00:00 2001
9fc0f6
From: David Herrmann <dh.herrmann@gmail.com>
9fc0f6
Date: Thu, 10 Oct 2013 13:11:27 +0200
9fc0f6
Subject: [PATCH] login: make sd_session_get_vt() actually work
9fc0f6
9fc0f6
We use VTNR, not VTNr as key. Until now sd_session_get_vt() just returns
9fc0f6
an error.
9fc0f6
---
9fc0f6
 src/login/sd-login.c | 2 +-
9fc0f6
 1 file changed, 1 insertion(+), 1 deletion(-)
9fc0f6
9fc0f6
diff --git a/src/login/sd-login.c b/src/login/sd-login.c
9fc0f6
index 6c27dfe..7e25041 100644
9fc0f6
--- a/src/login/sd-login.c
9fc0f6
+++ b/src/login/sd-login.c
9fc0f6
@@ -354,7 +354,7 @@ _public_ int sd_session_get_vt(const char *session, unsigned *vtnr) {
9fc0f6
         unsigned u;
9fc0f6
         int r;
9fc0f6
 
9fc0f6
-        r = session_get_string(session, "VTNr", &vtnr_string);
9fc0f6
+        r = session_get_string(session, "VTNR", &vtnr_string);
9fc0f6
         if (r < 0)
9fc0f6
                 return r;
9fc0f6