mirror of
https://github.com/systemd/systemd.git
synced 2025-01-23 02:04:32 +03:00
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…
x
Reference in New Issue
Block a user