daandemeyer / rpms / systemd

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