daandemeyer / rpms / systemd

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