chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide: there is no ENOTSUP on linux
[elogind.git]
/
src
/
login
/
logind-session.c
diff --git
a/src/login/logind-session.c
b/src/login/logind-session.c
index ce5dbb4d5ccfa0a62d5da46c7cff8b7ac64df5f7..e9b179067c51a21e0dd663d4901995323fd897b6 100644
(file)
--- a/
src/login/logind-session.c
+++ b/
src/login/logind-session.c
@@
-461,7
+461,7
@@
int session_activate(Session *s) {
assert(s->user);
if (!s->seat)
assert(s->user);
if (!s->seat)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
if (s->seat->active == s)
return 0;
if (s->seat->active == s)
return 0;
@@
-469,7
+469,7
@@
int session_activate(Session *s) {
/* on seats with VTs, we let VTs manage session-switching */
if (seat_has_vts(s->seat)) {
if (!s->vtnr)
/* on seats with VTs, we let VTs manage session-switching */
if (seat_has_vts(s->seat)) {
if (!s->vtnr)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
return chvt(s->vtnr);
}
return chvt(s->vtnr);
}