summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-10-10 13:11:27 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2013-10-10 13:14:18 +0200
commit0581dac2c146cef0f55841a4c136dc48409c8eaa (patch)
tree4edc551516450de839f27b94617af91e6d177869 /src/login
parent3f4fee033bf0f623de74f3e8a14c42b8ff81c36e (diff)
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.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/sd-login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/sd-login.c b/src/login/sd-login.c
index 6c27dfeb75..7e25041f6d 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;