mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03:00
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.
This commit is contained in:
parent
3f4fee033b
commit
0581dac2c1
Notes:
Lennart Poettering
2014-02-17 18:55:39 +01:00
Backport: bugfix
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user