logind: fix bad error propagation
This commit is contained in:
parent
d88ffeeeef
commit
cce08496e7
|
@ -175,7 +175,7 @@ static int vt_allocate(unsigned int vtnr) {
|
|||
xsprintf(p, "/dev/tty%u", vtnr);
|
||||
fd = open_terminal(p, O_RDWR|O_NOCTTY|O_CLOEXEC);
|
||||
if (fd < 0)
|
||||
return -errno;
|
||||
return fd;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue