From cce08496e7353e3e9903b42695aba3f9d259b90a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Aug 2018 18:21:37 +0200 Subject: logind: fix bad error propagation --- src/login/logind-seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 398c74d712..824bef02a2 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -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; } -- cgit v1.2.1