From 7bc0351dd8bdd5045101616d304a3f16ecb91e5a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 12 Jul 2010 20:35:14 +0200 Subject: [PATCH] util: fix error handling in acquire_terminal() --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index fa34137bd..b5513dd74 100644 --- a/src/util.c +++ b/src/util.c @@ -2030,7 +2030,7 @@ int acquire_terminal(const char *name, bool fail, bool force, bool ignore_tiocst } if (e.wd != wd || !(e.mask & IN_CLOSE)) { - r = -errno; + r = -EIO; goto fail; } -- 2.30.2